Lines Matching refs:isReassociableOp
148 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) { in isReassociableOp() function
156 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode1, in isReassociableOp() function
510 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) { in LinearizeExprTree()
551 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) { in LinearizeExprTree()
597 assert(!isReassociableOp(Op, Opcode) && "Value was morphed?"); in LinearizeExprTree()
611 assert(!isReassociableOp(V, Opcode) && "Shouldn't be a leaf!"); in LinearizeExprTree()
700 BinaryOperator *BO = isReassociableOp(OldLHS, Opcode); in RewriteExprTree()
706 BinaryOperator *BO = isReassociableOp(OldRHS, Opcode); in RewriteExprTree()
731 BinaryOperator *BO = isReassociableOp(Op->getOperand(1), Opcode); in RewriteExprTree()
745 BinaryOperator *BO = isReassociableOp(Op->getOperand(0), Opcode); in RewriteExprTree()
832 isReassociableOp(V, Instruction::Add, Instruction::FAdd)) { in NegateValue()
935 if (isReassociableOp(V0, Instruction::Add, Instruction::FAdd) || in ShouldBreakUpSubtract()
936 isReassociableOp(V0, Instruction::Sub, Instruction::FSub)) in ShouldBreakUpSubtract()
939 if (isReassociableOp(V1, Instruction::Add, Instruction::FAdd) || in ShouldBreakUpSubtract()
940 isReassociableOp(V1, Instruction::Sub, Instruction::FSub)) in ShouldBreakUpSubtract()
944 (isReassociableOp(VB, Instruction::Add, Instruction::FAdd) || in ShouldBreakUpSubtract()
945 isReassociableOp(VB, Instruction::Sub, Instruction::FSub))) in ShouldBreakUpSubtract()
1043 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in RemoveFactorFromExpression()
1118 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in FindSingleUseMultiplyFactors()
1534 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
1606 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
2082 if (isReassociableOp(I->getOperand(0), Instruction::Mul) || in OptimizeInst()
2084 (isReassociableOp(I->user_back(), Instruction::Mul) || in OptimizeInst()
2085 isReassociableOp(I->user_back(), Instruction::Add)))) { in OptimizeInst()
2126 if (isReassociableOp(I->getOperand(1), Instruction::Mul) && in OptimizeInst()
2128 !isReassociableOp(I->user_back(), Instruction::Mul))) { in OptimizeInst()
2153 if (isReassociableOp(Op, Instruction::FMul) && in OptimizeInst()
2155 !isReassociableOp(I->user_back(), Instruction::FMul))) { in OptimizeInst()