[llvm] [VPlan] Introduce m_Cmp; match more compares (PR #154771)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 08:59:00 PDT 2025


================
@@ -786,6 +786,8 @@ class VPIRFlags {
       I.setNonNeg(NonNegFlags.NonNeg);
       break;
     case OperationType::Cmp:
+      cast<CmpInst>(I).setPredicate(CmpPredicate);
+      break;
----------------
artagnon wrote:

Hm, we could easily setPredicate in the VPReplicateRecipe::execute call after the applyFlags, but I thought the Predicate was a flag, and should be handled by applyFlags?

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


More information about the llvm-commits mailing list