[PATCH] D78298: [LV] Invalidate cost model decisions along with interleave groups.
Ayal Zaks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 11:53:47 PDT 2020
Ayal accepted this revision.
Ayal added a comment.
This revision is now accepted and ready to land.
This looks good to me, thanks!
================
Comment at: llvm/lib/Analysis/VectorUtils.cpp:1256
RequiresScalarEpilogue = false;
+ assert(!DelSet.empty() && "At least one group must be invalidated, as a "
+ "scalar epilogue was required");
----------------
Right, very good.
Better place the assert immediately after the loop that fills DelSet.
Independent fix: would be better to loop over InterleaveGroups rather than InterleaveGroupMap in order to fill DelSet; which could then be a SmallVector; w/o the need for the "Avoid releasing a Group twice" comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78298/new/
https://reviews.llvm.org/D78298
More information about the llvm-commits
mailing list