Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:BinOp

24 /// adds all have a single use, turn this into a phi and a single binop.
121 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst);
123 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal);
509 // Can fold binop, compare or shift here if the RHS is a constant,
582 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(FirstInst)) {
583 BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp);
584 if (isNUW) BinOp->setHasNoUnsignedWrap();
585 if (isNSW) BinOp->setHasNoSignedWrap();
586 if (isExact) BinOp->setIsExact();
587 BinOp->setDebugLoc(FirstInst->getDebugLoc());
588 return BinOp;