Improved compile time:
authorStepan Dyatkovskiy <stpworld@narod.ru>
Wed, 11 Jan 2012 08:40:51 +0000 (08:40 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Wed, 11 Jan 2012 08:40:51 +0000 (08:40 +0000)
commit88c5c42c5c832f599b34a5f5f4d361b9c1eacf6c
tree33d98153a070dabe6c876b9d048d1bbdfa294c25
parent69b5df8bf616a0ea0603b21ec8d63bde1b817ba5
Improved compile time:
1. Size heuristics changed. Now we calculate number of unswitching
branches only once per loop.
2. Some checks was moved from UnswitchIfProfitable to
processCurrentLoop, since it is not changed during processCurrentLoop
iteration. It allows decide to skip some loops at an early stage.
Extended statistics:
- Added total number of instructions analyzed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147935 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll