Fix for bug #11429: Wrong behaviour for switches. Small improvement for code size...
authorStepan Dyatkovskiy <stpworld@narod.ru>
Wed, 14 Dec 2011 19:19:17 +0000 (19:19 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Wed, 14 Dec 2011 19:19:17 +0000 (19:19 +0000)
commitac12ef4ad22de941655c889f319a4c6923b77620
tree89457c1e92f9aebe82a0b83dfbed493d5a05dcdf
parentf9096e450bb6047ab330c94749f5e80178a62b09
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@146578 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
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]