[llvm] [LoopVectorize] Fix double-application of FindIV reduction expression in epilogue (PR #219362)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 01:59:54 PDT 2026


================
@@ -2879,6 +2879,11 @@ class VPReductionPHIRecipe : public VPHeaderPHIRecipe, public VPIRFlags {
   /// compare has multiple uses.
   bool HasUsesOutsideReductionChain;
 
+  // True if FindIV's expression was sunk into the vector loop. Epilogue
+  // is disabled while this is true. Temporary until epilogue handles sunk
+  // expressions.
----------------
im-lunex wrote:

@fhahn doesn't this commit (https://github.com/fhahn/llvm-project/commit/9849eb12966c0736a5604b7de5651f25d465fb10) fixes this issue ? Clarification please ..

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


More information about the llvm-commits mailing list