Lines Matching defs:Cmp1
751 Value *InstCombiner::simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1,
767 ICmpInst::Predicate Pred1 = (Inverted ? Cmp1->getInversePredicate() :
768 Cmp1->getPredicate());
772 if (Cmp1->getOperand(0) == Input) {
774 RangeEnd = Cmp1->getOperand(1);
775 } else if (Cmp1->getOperand(1) == Input) {
777 RangeEnd = Cmp1->getOperand(0);
792 KnownBits Known = computeKnownBits(RangeEnd, /*Depth=*/0, Cmp1);
1024 static Value *foldIsPowerOf2(ICmpInst *Cmp0, ICmpInst *Cmp1, bool JoinedByAnd,
1027 if (JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_NE)
1028 std::swap(Cmp0, Cmp1);
1029 else if (!JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_EQ)
1030 std::swap(Cmp0, Cmp1);
1036 match(Cmp1, m_ICmp(Pred1, m_Intrinsic<Intrinsic::ctpop>(m_Specific(X)),
1039 Value *CtPop = Cmp1->getOperand(0);
1044 match(Cmp1, m_ICmp(Pred1, m_Intrinsic<Intrinsic::ctpop>(m_Specific(X)),
1047 Value *CtPop = Cmp1->getOperand(0);
1142 /// Cmp0/Cmp1 switched to handle logic op commutativity.
1143 static Value *foldAndOrOfICmpsWithConstEq(ICmpInst *Cmp0, ICmpInst *Cmp1,
1167 if (!match(Cmp1, m_c_ICmp(Pred1, m_Value(Y), m_Deferred(X))))
1179 if (!Cmp1->hasOneUse())