[llvm] IR: introduce struct with CmpInst::Predicate and samesign (PR #116867)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 28 13:45:13 PST 2024


================
@@ -59,7 +59,7 @@ Value *InstCombinerImpl::insertRangeTest(Value *V, const APInt &Lo,
 
   // V >= Min && V <  Hi --> V <  Hi
   // V <  Min || V >= Hi --> V >= Hi
-  ICmpInst::Predicate Pred = Inside ? ICmpInst::ICMP_ULT : ICmpInst::ICMP_UGE;
+  CmpPredicate Pred = Inside ? ICmpInst::ICMP_ULT : ICmpInst::ICMP_UGE;
----------------
nikic wrote:

I'd probably leave this one alone, as this is just holding a plain predicate...

https://github.com/llvm/llvm-project/pull/116867


More information about the llvm-commits mailing list