Lines Matching defs:LOp
595 /// Return whether "X LOp (Y ROp Z)" is always equal to
596 /// "(X LOp Y) ROp (X LOp Z)".
597 static bool leftDistributesOverRight(Instruction::BinaryOps LOp,
601 if (LOp == Instruction::And)
605 if (LOp == Instruction::Or)
610 if (LOp == Instruction::Mul)
616 /// Return whether "(X LOp Y) ROp Z" is always equal to
617 /// "(X ROp Z) LOp (Y ROp Z)".
618 static bool rightDistributesOverLeft(Instruction::BinaryOps LOp,
621 return leftDistributesOverRight(ROp, LOp);
624 return Instruction::isBitwiseLogicOp(LOp) && Instruction::isShift(ROp);