Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:BO

513     if (BinaryOperator *BO = dyn_cast<BinaryOperator>(SimplifiedInst)) {
538 BO->setHasNoSignedWrap(HasNSW);
715 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(&I)) {
716 Value *RI = IC->Builder->CreateBinOp(BO->getOpcode(), Op0, Op1,
720 FPInst->copyFastMathFlags(BO);
1061 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op)) {
1063 if (BO->getOpcode() == Instruction::Mul) {
1065 NoSignedWrap = BO->hasNoSignedWrap();
1072 Value *LHS = BO->getOperand(0);
1073 Value *RHS = BO->getOperand(1);
1088 Parent = std::make_pair(BO, 1);
1097 Parent = std::make_pair(BO, 0);
1101 if (logScale > 0 && BO->getOpcode() == Instruction::Shl &&
1102 isa<ConstantInt>(BO->getOperand(1))) {
1104 NoSignedWrap = BO->hasNoSignedWrap();
1108 Value *LHS = BO->getOperand(0);
1109 int32_t Amt = cast<ConstantInt>(BO->getOperand(1))->
1124 Parent = std::make_pair(BO, 1);
1125 Op = ConstantInt::get(BO->getType(), Amt - logScale);
1211 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Ancestor)) {
1215 bool OpNoSignedWrap = BO->hasNoSignedWrap();
1218 BO->setHasNoSignedWrap(NoSignedWrap);
1244 Value *BO = B->CreateBinOp(Inst.getOpcode(), LHS, RHS);
1245 // If LHS and RHS are constant, BO won't be a binary operator.
1246 if (BinaryOperator *NewBO = dyn_cast<BinaryOperator>(BO))
1248 return BO;