[SwitchLowering] Handle destinations on multiple phi instructions
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 2 Dec 2014 18:31:53 +0000 (18:31 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 2 Dec 2014 18:31:53 +0000 (18:31 +0000)
commit495e547ef978d323679d5f535f7c0b5bad359b12
treeb39fa13f49e380a1cc36e58dbc23adc675e9c272
parent88d2b5812ae6ac3f4ab3e11107fba2a8751198df
[SwitchLowering] Handle destinations on multiple phi instructions

Follow up from r222926. Also handle multiple destinations from merged
cases on multiple and subsequent phi instructions.

rdar://problem/19106978

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223135 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LowerSwitch.cpp
test/Transforms/Util/lowerswitch.ll