Lines Matching refs:UserI
983 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() local
988 if (UserI->hasOneUse()) { in isFoldableLoad()
989 unsigned UserBits = UserI->getType()->getScalarSizeInBits(); in isFoldableLoad()
990 if (isa<TruncInst>(UserI)) in isFoldableLoad()
992 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
994 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
998 FoldedValue = UserI; in isFoldableLoad()
999 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
1002 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
1003 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad()
1004 UserI->getOpcode() == Instruction::UDiv) && in isFoldableLoad()
1005 UserI->getOperand(1) != FoldedValue) in isFoldableLoad()
1011 switch (UserI->getOpcode()) { in isFoldableLoad()
1019 if (UserI->getOpcode() != Instruction::ICmp) { in isFoldableLoad()
1047 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
1048 if (ConstantInt *CI = dyn_cast<ConstantInt>(UserI->getOperand(1))) in isFoldableLoad()
1081 const Instruction *UserI = cast<Instruction>(*FoldedValue->user_begin()); in getMemoryOpCost() local
1082 assert (UserI->getNumOperands() == 2 && "Expected a binop."); in getMemoryOpCost()
1087 if (UserI->getOperand(i) == FoldedValue) in getMemoryOpCost()
1090 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost()