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 | cd53f64367b3d9e2b1a82e589d09682a42f538ea (patch) | |
tree | 157cc9455538890776bbdb86363c61ce601922be /lib/Transforms/Utils/SSAUpdater.cpp | |
parent | 480c529e026942f28e1a792d2cec6d6b5bc0edba (diff) |
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/Transforms/Utils/SSAUpdater.cpp')
0 files changed, 0 insertions, 0 deletions