[PATCH] D149281: Must unroll epilogue loops after vectorization on AMDGPU target
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 26 12:41:59 PDT 2023
rampitec added a comment.
Add a test?
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7783
+ TTI->getUnrollingPreferences(L, *PSE.getSE(), UP, ORE);
+ if (!UP.unrollLoopEpilogues)
+ AddRuntimeUnrollDisableMetaData(L);
----------------
Original code had `CanonicalIVStartValue` check. So to restore it this should look: `if (CanonicalIVStartValue || !UP.unrollLoopEpilogues)`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149281/new/
https://reviews.llvm.org/D149281
More information about the llvm-commits
mailing list