[llvm] [VPlan] Impl VPlan-based pattern match for ExtendedRed and MulAccRed (NFCI) (PR #113903)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 25 21:10:36 PST 2025


================
@@ -1263,10 +1264,17 @@ void VPlanTransforms::clearReductionWrapFlags(VPlan &Plan) {
     if (RK != RecurKind::Add && RK != RecurKind::Mul)
       continue;
 
-    for (VPUser *U : collectUsersRecursively(PhiR))
+    for (VPUser *U : collectUsersRecursively(PhiR)) {
+      // Flags in reduction recipes are control/store by the recurrence
+      // descriptor. Dropping flags for VPExtendedReductionRecipe and
+      // VPMulaccRecipe may drop flags that we don't expect to drop.
+      if (isa<VPReductionRecipe>(U))
----------------
ElvisWang123 wrote:

Removed, thanks!

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


More information about the llvm-commits mailing list