[Unroll] Handle SwitchInst properly.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 29 Jul 2015 18:10:33 +0000 (18:10 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 29 Jul 2015 18:10:33 +0000 (18:10 +0000)
commit607fe5bb280a3d8709820d2a77d75531b500fb04
tree85fb344d1888e23291730126a6be0c1abb0f6772
parent815580fe7a4fdf1fb62104edf9baf7d315004fd6
[Unroll] Handle SwitchInst properly.

Previously successor selection was simply wrong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243545 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Transforms/LoopUnroll/full-unroll-crashers.ll