[PATCH] D14829: [SLP] Vectorize gather-like idioms ending at non-consecutive loads.
Matthew Simpson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 5 08:11:45 PST 2016
mssimpso updated this revision to Diff 44007.
mssimpso added a comment.
Addressed Ayal's comments
Thanks very much for the feedback, Ayal! Your suggestions sound reasonable to me. I've updated the patch to seed with GEPs instead of loads and to avoid aborting all candidates if some are consecutive. I also refactored other parts of the patch to match these changes.
I think that starting with GEPs is more straightforward. We were basically already doing this, but only considering the ones used by loads. And I originally chose to abort the candidates if some were consecutive to avoid potential compile-time increases. However, I've benchmarked the new patch with your suggestions and observed no regressions in the LLVM test suite or SPEC. We still bail out early if there are no viable candidates.
http://reviews.llvm.org/D14829
Files:
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/AArch64/gather-reduce.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14829.44007.patch
Type: text/x-patch
Size: 26525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160105/791c55b4/attachment-0001.bin>
More information about the llvm-commits
mailing list