[PATCH] D26527: Use profile info to adjust loop unroll threshold.
Dehao Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 10 14:37:31 PST 2016
danielcdh created this revision.
danielcdh added reviewers: davidxl, mzolotukhin.
danielcdh added a subscriber: llvm-commits.
Herald added subscribers: mehdi_amini, sanjoy.
For flat loop, even if it is hot, it is not a good idea to unroll in runtime, thus we set a lower partial unroll threshold.
For hot loop, we set a higher unroll threshold and allows expensive tripcount computation to allow more aggressive unrolling.
https://reviews.llvm.org/D26527
Files:
include/llvm/Analysis/LoopPassManager.h
lib/Passes/PassBuilder.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Other/pass-pipelines.ll
test/Transforms/LoopUnroll/unloop.ll
test/Transforms/LoopUnroll/unroll-heuristics-pgo.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26527.77556.patch
Type: text/x-patch
Size: 15911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161110/53e44d52/attachment.bin>
More information about the llvm-commits
mailing list