[PATCH] D17258: [LoopReroller] Allow setting MaxRerollIterations above 16
Ayal Zaks via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 15 01:58:48 PST 2016
Ayal created this revision.
Ayal added reviewers: jmolloy, hfinkel.
Ayal added a subscriber: llvm-commits.
Herald added a subscriber: mzolotukhin.
LoopReroller currently handles upto 16 iterations and this threshold is hardwired. Using a larger threshold will work, although if set to more than 25 or so the SmallBitVectors used will run slower. This patch exports -max-rerolled-iterations flag to the command line, to allow setting a larger (than 16) threshold if interested. Regretfully, couldn’t find a better way to keep the Iteration Limit constants neatly together as they were, and yet allow to override them.
http://reviews.llvm.org/D17258
Files:
lib/Transforms/Scalar/LoopRerollPass.cpp
test/Transforms/LoopReroll/basic32iters.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17258.47961.patch
Type: text/x-patch
Size: 20099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160215/3ec7aadd/attachment.bin>
More information about the llvm-commits
mailing list