[llvm] [VPlan] Extract reverse mask from reverse accesses (PR #155579)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 03:00:22 PST 2026


================
@@ -7167,10 +7162,14 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
                 RepR->getUnderlyingInstr(), VF))
           return true;
       }
+
+      // vp.reverse is generated during EVL tail folding transformation.
+      if (match(&R, m_Intrinsic<Intrinsic::experimental_vp_reverse>()))
+        return true;
+
----------------
lukel97 wrote:

Is this still needed after 0b7bb951993cd82c6defa82bb47ebe0f4b8f5844? I quickly tried commenting it out and check-llvm-transforms-loopvectorize seems to pass

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


More information about the llvm-commits mailing list