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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 06:16:34 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.
----------------
fhahn wrote:

All I see is that the latest version of the code in the PR still only has `//` while it should use `///`

Please also add TODO, stating hat this is only intended as temporary measure.

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


More information about the llvm-commits mailing list