diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-20 20:06:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-20 20:06:09 +0000 |
commit | 5c6665c8637d9483f51c3448941298218748f7eb (patch) | |
tree | 157cc9455538890776bbdb86363c61ce601922be /lib/Support | |
parent | 11eb3a6c0dc019c8e69c7853e2d3678940714d30 (diff) | |
download | external_llvm-5c6665c8637d9483f51c3448941298218748f7eb.zip external_llvm-5c6665c8637d9483f51c3448941298218748f7eb.tar.gz external_llvm-5c6665c8637d9483f51c3448941298218748f7eb.tar.bz2 |
Restore LoopUnswitch's block-oriented threshold. LoopUnswitch now checks both
the estimated code size and the number of blocks when deciding whether to
do a non-trivial unswitch. This protects it from some very undesirable
worst-case behavior on large numbers of loop-unswitchable conditions, such
as in the testcase in PR5259.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
0 files changed, 0 insertions, 0 deletions