Lines Matching defs:LOp
483 /// Return whether "X LOp (Y ROp Z)" is always equal to
484 /// "(X LOp Y) ROp (X LOp Z)".
485 static bool leftDistributesOverRight(Instruction::BinaryOps LOp,
489 if (LOp == Instruction::And)
493 if (LOp == Instruction::Or)
498 if (LOp == Instruction::Mul)
504 /// Return whether "(X LOp Y) ROp Z" is always equal to
505 /// "(X ROp Z) LOp (Y ROp Z)".
506 static bool rightDistributesOverLeft(Instruction::BinaryOps LOp,
509 return leftDistributesOverRight(ROp, LOp);
512 return Instruction::isBitwiseLogicOp(LOp) && Instruction::isShift(ROp);