Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:cast

29   Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0));
50 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate())
89 Instruction *InInst = cast<Instruction>(PN.getIncomingValue(i));
108 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst);
122 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0));
212 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i));
277 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0));
362 LoadInst *LI = cast<LoadInst>(PN.getIncomingValue(i));
384 cast<LoadInst>(IncValue)->setVolatile(false);
390 /// TODO: This function could handle other cast types, but then it might
391 /// require special-casing a cast from the 'i1' type. See the comment in
438 // If it's not a cast or a constant, bail out.
446 // performed here. It tries to replicate a cast in the phi operand's basic
474 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0));
482 // If all input operands to the phi are the same instruction (e.g. a cast from
514 return nullptr; // Cast operation must match.
531 Value *NewInVal = cast<Instruction>(PN.getIncomingValue(i))->getOperand(0);
567 CmpInst *CIOp = cast<CmpInst>(FirstInst);
628 return ConstantInt::get(cast<IntegerType>(PN.getType()), 1);
729 Instruction *UserI = cast<Instruction>(U);
750 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue();
841 cast<Instruction>(Res)));
877 cast<Instruction>(PN.getIncomingValue(0))->getOpcode() ==
878 cast<Instruction>(PN.getIncomingValue(1))->getOpcode() &&
889 Instruction *PHIUser = cast<Instruction>(PN.user_back());
972 PHINode *FirstPN = cast<PHINode>(PN.getParent()->begin());