Lines Matching defs:LOp
587 /// Return whether "X LOp (Y ROp Z)" is always equal to
588 /// "(X LOp Y) ROp (X LOp Z)".
589 static bool leftDistributesOverRight(Instruction::BinaryOps LOp,
593 if (LOp == Instruction::And)
597 if (LOp == Instruction::Or)
602 if (LOp == Instruction::Mul)
608 /// Return whether "(X LOp Y) ROp Z" is always equal to
609 /// "(X ROp Z) LOp (Y ROp Z)".
610 static bool rightDistributesOverLeft(Instruction::BinaryOps LOp,
613 return leftDistributesOverRight(ROp, LOp);
616 return Instruction::isBitwiseLogicOp(LOp) && Instruction::isShift(ROp);