Reinstate r146578; it doesn't appear to be the cause of some recent execution-
authorChad Rosier <mcrosier@apple.com>
Thu, 22 Dec 2011 21:06:36 +0000 (21:06 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 22 Dec 2011 21:06:36 +0000 (21:06 +0000)
commitf1eba253038ab480abb43ea33909e9095b1321a7
treed6f77de868bc7c3bd52659bc323cd0faec340019
parentc7448f8d47de96333d6854113fb9f0e7affb31cd
Reinstate r146578; it doesn't appear to be the cause of some recent execution-
time regressions.  In general, it is beneficial to compile-time.

Original commit message:
Fix for bug #11429: Wrong behaviour for switches. Small improvement for code
size heuristics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147175 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll [new file with mode: 0644]
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll [new file with mode: 0644]
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches.ll [new file with mode: 0644]