[PATCH] D13949: [SLP] Treat SelectInsts as reduction values.
Charlie Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 10:12:28 PDT 2015
chatur01 created this revision.
chatur01 added reviewers: jmolloy, nadav, mzolotukhin, spatel.
chatur01 added a subscriber: llvm-commits.
chatur01 set the repository for this revision to rL LLVM.
Herald added a subscriber: aemerson.
Certain workloads, in particular sum-of-absdiff loops, can be vectorized using SLP if it can treat select instructions as reduction values.
The test case is a bit awkward. The AArch64 cost model needs some tuning to not be so pessimistic about selects. I've had to tweak the SLP threshold here.
Repository:
rL LLVM
http://reviews.llvm.org/D13949
Files:
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/AArch64/horizontal.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13949.38026.patch
Type: text/x-patch
Size: 4527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151021/89638171/attachment.bin>
More information about the llvm-commits
mailing list