Bail on unswitching a switch statement for a case with a critical edge. We name
authorNick Lewycky <nicholas@mxc.ca>
Fri, 3 Jun 2011 06:27:15 +0000 (06:27 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 3 Jun 2011 06:27:15 +0000 (06:27 +0000)
commit444f297a782047fbe6255a3543bc3ccd025c0691
tree0c8c7e3690d42c8761771ba7b50dcffb97bc883e
parent3d26f2333b320e04d405a4418f640f8b7e358a99
Bail on unswitching a switch statement for a case with a critical edge. We name
which edge to split by pred/succ pair, which means that we can end up splitting
the wrong edge (by case value) in the switch statement entirely. Fixes PR10031!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132535 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
test/Transforms/LoopUnswitch/2011-06-02-CritSwitch.ll [new file with mode: 0644]