summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/WarnMissedTransforms.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-04-17 15:57:43 +0000
committerFlorian Hahn <flo@fhahn.com>2019-04-17 15:57:43 +0000
commit893aea58ea5ead1433658f181fd5bd749fe21a92 (patch)
tree4966a824bbd39f546d974211369d4351a67191ea /llvm/lib/Transforms/Scalar/WarnMissedTransforms.cpp
parente7fe6dd5edb828e702d02c7cdc6565ace4c84f5b (diff)
downloadbcm5719-llvm-893aea58ea5ead1433658f181fd5bd749fe21a92.tar.gz
bcm5719-llvm-893aea58ea5ead1433658f181fd5bd749fe21a92.zip
[LoopUnroll] Allow unrolling if the unrolled size does not exceed loop size.
Summary: In the following cases, unrolling can be beneficial, even when optimizing for code size: 1) very low trip counts 2) potential to constant fold most instructions after fully unrolling. We can unroll in those cases, by setting the unrolling threshold to the loop size. This might highlight some cost modeling issues and fixing them will have a positive impact in general. Reviewers: vsk, efriedma, dmgreen, paquette Reviewed By: paquette Differential Revision: https://reviews.llvm.org/D60265 llvm-svn: 358586
Diffstat (limited to 'llvm/lib/Transforms/Scalar/WarnMissedTransforms.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud