Lines Matching defs:CmpLHS

2581   Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1);
2582 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS)
2585 LHS == CmpRHS && RHS == CmpLHS)
4543 static Value *simplifyCmpSelOfMaxMin(Value *CmpLHS, Value *CmpRHS,
4546 // Canonicalize common cmp+sel operand as CmpLHS.
4548 std::swap(CmpLHS, CmpRHS);
4553 if (CmpLHS == FVal) {
4560 Value *X = CmpLHS, *Y = CmpRHS;
4617 static Value *simplifySelectWithFakeICmpEq(Value *CmpLHS, Value *CmpRHS,
4620 if (auto Res = decomposeBitTestICmp(CmpLHS, CmpRHS, Pred))
4659 Value *CmpLHS, *CmpRHS;
4660 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS))))
4663 if (Value *V = simplifyCmpSelOfMaxMin(CmpLHS, CmpRHS, Pred, TrueVal, FalseVal))
4692 if (match(CmpLHS, m_And(m_Value(X), m_APInt(Y))))
4703 if (match(TrueVal, isFsh) && FalseVal == X && CmpLHS == ShAmt)
4716 if (match(FalseVal, isRotate) && TrueVal == X && CmpLHS == ShAmt &&
4722 if (match(TrueVal, m_Intrinsic<Intrinsic::abs>(m_Specific(CmpLHS))) &&
4723 match(FalseVal, m_Neg(m_Intrinsic<Intrinsic::abs>(m_Specific(CmpLHS)))))
4726 m_Neg(m_Intrinsic<Intrinsic::abs>(m_Specific(CmpLHS)))) &&
4727 match(FalseVal, m_Intrinsic<Intrinsic::abs>(m_Specific(CmpLHS))))
4733 simplifySelectWithFakeICmpEq(CmpLHS, CmpRHS, Pred, TrueVal, FalseVal))
4740 if (Value *V = simplifySelectWithEquivalence({{CmpLHS, CmpRHS}}, TrueVal,
4743 if (Value *V = simplifySelectWithEquivalence({{CmpRHS, CmpLHS}}, TrueVal,
4750 if (match(CmpLHS, m_Or(m_Value(X), m_Value(Y))) &&
4759 if (match(CmpLHS, m_And(m_Value(X), m_Value(Y))) &&
4777 Value *CmpLHS, *CmpRHS;
4778 if (!match(Cond, m_FCmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS))))
4792 if (Value *V = simplifySelectWithEquivalence({{CmpLHS, CmpRHS}}, T, F, Q,
4795 if (Value *V = simplifySelectWithEquivalence({{CmpRHS, CmpLHS}}, T, F, Q,
4800 // Canonicalize CmpLHS to be T, and CmpRHS to be F, if they're swapped.
4801 if (CmpLHS == F && CmpRHS == T)
4802 std::swap(CmpLHS, CmpRHS);
4804 if (CmpLHS != T || CmpRHS != F)