[llvm] [VPlan] Introduce ComputeReductionResult VPInstruction opcode. (PR #70253)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 08:36:53 PST 2023


================
@@ -9027,6 +8905,8 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
     for (VPRecipeBase *CurrentLink : Worklist.getArrayRef().drop_front()) {
       VPValue *PreviousLinkV = PreviousLink->getVPSingleValue();
 
+      if (CurrentLink->getParent()->getParent() != VectorLoopRegion)
+        continue;
----------------
ayalz wrote:

Reduction chain should currently have a single live-out; check for and exclude it during Worklist construction rather than here during its traversal?

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


More information about the llvm-commits mailing list