Lines Matching refs:UserI
1075 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() local
1080 if (UserI->hasOneUse()) { in isFoldableLoad()
1081 unsigned UserBits = UserI->getType()->getScalarSizeInBits(); in isFoldableLoad()
1082 if (isa<TruncInst>(UserI)) in isFoldableLoad()
1084 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
1086 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
1090 FoldedValue = UserI; in isFoldableLoad()
1091 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
1094 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
1095 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad()
1096 UserI->getOpcode() == Instruction::UDiv) && in isFoldableLoad()
1097 UserI->getOperand(1) != FoldedValue) in isFoldableLoad()
1103 switch (UserI->getOpcode()) { in isFoldableLoad()
1111 if (UserI->getOpcode() != Instruction::ICmp) { in isFoldableLoad()
1139 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
1140 if (ConstantInt *CI = dyn_cast<ConstantInt>(UserI->getOperand(1))) in isFoldableLoad()
1174 const Instruction *UserI = cast<Instruction>(*FoldedValue->user_begin()); in getMemoryOpCost() local
1175 assert (UserI->getNumOperands() == 2 && "Expected a binop."); in getMemoryOpCost()
1180 if (UserI->getOperand(i) == FoldedValue) in getMemoryOpCost()
1183 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost()