Lines Matching refs:isReassociableOp
163 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) { in isReassociableOp() function
171 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode1, in isReassociableOp() function
444 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) { in LinearizeExprTree()
522 assert(!isReassociableOp(Op, Opcode) && "Value was morphed?"); in LinearizeExprTree()
535 assert(!isReassociableOp(V, Opcode) && "Shouldn't be a leaf!"); in LinearizeExprTree()
636 BinaryOperator *BO = isReassociableOp(OldLHS, Opcode); in RewriteExprTree()
642 BinaryOperator *BO = isReassociableOp(OldRHS, Opcode); in RewriteExprTree()
669 BinaryOperator *BO = isReassociableOp(Op->getOperand(1), Opcode); in RewriteExprTree()
685 BinaryOperator *BO = isReassociableOp(Op->getOperand(0), Opcode); in RewriteExprTree()
797 isReassociableOp(V, Instruction::Add, Instruction::FAdd)) { in NegateValue()
943 if (isReassociableOp(V, Op)) in shouldConvertOrWithNoCommonBitsToAdd()
989 if (isReassociableOp(V0, Instruction::Add, Instruction::FAdd) || in ShouldBreakUpSubtract()
990 isReassociableOp(V0, Instruction::Sub, Instruction::FSub)) in ShouldBreakUpSubtract()
993 if (isReassociableOp(V1, Instruction::Add, Instruction::FAdd) || in ShouldBreakUpSubtract()
994 isReassociableOp(V1, Instruction::Sub, Instruction::FSub)) in ShouldBreakUpSubtract()
998 (isReassociableOp(VB, Instruction::Add, Instruction::FAdd) || in ShouldBreakUpSubtract()
999 isReassociableOp(VB, Instruction::Sub, Instruction::FSub))) in ShouldBreakUpSubtract()
1101 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in RemoveFactorFromExpression()
1176 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in FindSingleUseMultiplyFactors()
1591 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
1662 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
2150 if (isReassociableOp(I->getOperand(0), Instruction::Mul) || in OptimizeInst()
2152 (isReassociableOp(I->user_back(), Instruction::Mul) || in OptimizeInst()
2153 isReassociableOp(I->user_back(), Instruction::Add)))) { in OptimizeInst()
2209 if (isReassociableOp(I->getOperand(1), Instruction::Mul) && in OptimizeInst()
2211 !isReassociableOp(I->user_back(), Instruction::Mul))) { in OptimizeInst()
2236 if (isReassociableOp(Op, Instruction::FMul) && in OptimizeInst()
2238 !isReassociableOp(I->user_back(), Instruction::FMul))) { in OptimizeInst()