Lines Matching refs:UserI
1025 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() local
1030 if (UserI->hasOneUse()) { in isFoldableLoad()
1031 unsigned UserBits = UserI->getType()->getScalarSizeInBits(); in isFoldableLoad()
1032 if (isa<TruncInst>(UserI)) in isFoldableLoad()
1034 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
1036 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
1040 FoldedValue = UserI; in isFoldableLoad()
1041 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
1044 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
1045 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad()
1046 UserI->getOpcode() == Instruction::UDiv) && in isFoldableLoad()
1047 UserI->getOperand(1) != FoldedValue) in isFoldableLoad()
1053 switch (UserI->getOpcode()) { in isFoldableLoad()
1061 if (UserI->getOpcode() != Instruction::ICmp) { in isFoldableLoad()
1089 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
1090 if (ConstantInt *CI = dyn_cast<ConstantInt>(UserI->getOperand(1))) in isFoldableLoad()
1123 const Instruction *UserI = cast<Instruction>(*FoldedValue->user_begin()); in getMemoryOpCost() local
1124 assert (UserI->getNumOperands() == 2 && "Expected a binop."); in getMemoryOpCost()
1129 if (UserI->getOperand(i) == FoldedValue) in getMemoryOpCost()
1132 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost()