[llvm] [VPlan] Extract reverse operation for reverse accesses (PR #146525)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 27 02:50:25 PDT 2025


================
@@ -7004,6 +7004,28 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
               WidenCmp->getPredicate() != cast<CmpInst>(UI)->getPredicate())
             return true;
         }
+
+        if (auto *MemR = dyn_cast<VPWidenMemoryRecipe>(&R)) {
+          bool IsReverse = CostCtx.CM.getWideningDecision(UI, VF) ==
----------------
Mel-Chen wrote:

Relate to separating the reverse mask from reverse access recipes. Redirect to https://github.com/llvm/llvm-project/pull/155579/files#r2303439125

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


More information about the llvm-commits mailing list