Skip to content
Commit b6b8ec76 authored by Dan Gohman's avatar Dan Gohman
Browse files

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.

llvm-svn: 84661
parent 9a587b01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment