[llvm] [VPlan] Introduce m_Cmp; match more compares (PR #154771)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 08:34:27 PDT 2025
================
@@ -786,6 +786,8 @@ class VPIRFlags {
I.setNonNeg(NonNegFlags.NonNeg);
break;
case OperationType::Cmp:
+ cast<CmpInst>(I).setPredicate(CmpPredicate);
+ break;
----------------
fhahn wrote:
Well, it is only a bug with this change, which modifies the predicate of VPReplicateRecipes. Other recipes should pass the predicate explicitly to the construction methods. For consistency it would be nice to also do that for VPReplicateRecipe on the cloned instructions explicitly (it is the odd one out as it still clones the underlying instructions...)
https://github.com/llvm/llvm-project/pull/154771
More information about the llvm-commits
mailing list