Lines Matching refs:UserI
1073 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() local
1078 if (UserI->hasOneUse()) { in isFoldableLoad()
1079 unsigned UserBits = UserI->getType()->getScalarSizeInBits(); in isFoldableLoad()
1080 if (isa<TruncInst>(UserI)) in isFoldableLoad()
1082 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
1084 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
1088 FoldedValue = UserI; in isFoldableLoad()
1089 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
1092 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
1093 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad()
1094 UserI->getOpcode() == Instruction::UDiv) && in isFoldableLoad()
1095 UserI->getOperand(1) != FoldedValue) in isFoldableLoad()
1101 switch (UserI->getOpcode()) { in isFoldableLoad()
1109 if (UserI->getOpcode() != Instruction::ICmp) { in isFoldableLoad()
1137 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
1138 if (ConstantInt *CI = dyn_cast<ConstantInt>(UserI->getOperand(1))) in isFoldableLoad()
1172 const Instruction *UserI = cast<Instruction>(*FoldedValue->user_begin()); in getMemoryOpCost() local
1173 assert (UserI->getNumOperands() == 2 && "Expected a binop."); in getMemoryOpCost()
1178 if (UserI->getOperand(i) == FoldedValue) in getMemoryOpCost()
1181 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost()