Lines Matching refs:UserI
893 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() local
898 if (UserI->hasOneUse()) { in isFoldableLoad()
899 unsigned UserBits = UserI->getType()->getScalarSizeInBits(); in isFoldableLoad()
900 if (isa<TruncInst>(UserI)) in isFoldableLoad()
902 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
904 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
908 FoldedValue = UserI; in isFoldableLoad()
909 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
912 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
913 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad()
914 UserI->getOpcode() == Instruction::UDiv) && in isFoldableLoad()
915 UserI->getOperand(1) != FoldedValue) in isFoldableLoad()
921 switch (UserI->getOpcode()) { in isFoldableLoad()
929 if (UserI->getOpcode() != Instruction::ICmp) { in isFoldableLoad()
957 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
958 if (ConstantInt *CI = dyn_cast<ConstantInt>(UserI->getOperand(1))) in isFoldableLoad()
985 const Instruction *UserI = cast<Instruction>(*FoldedValue->user_begin()); in getMemoryOpCost() local
986 assert (UserI->getNumOperands() == 2 && "Expected a binop."); in getMemoryOpCost()
991 if (UserI->getOperand(i) == FoldedValue) in getMemoryOpCost()
994 if (Instruction *OtherOp = dyn_cast<Instruction>(UserI->getOperand(i))){ in getMemoryOpCost()