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