StructurizeCFG: Add dependency on LowerSwitch pass
authorTom Stellard <thomas.stellard@amd.com>
Wed, 2 Oct 2013 17:04:59 +0000 (17:04 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 2 Oct 2013 17:04:59 +0000 (17:04 +0000)
commitaf7ae9d6890ce5fae27e38ccebb5da09288c49e0
treeac60a2aa5ba85017bed86412421a330bbb768077
parentea246d6af8f112001c8b13ffcc9c4fcc6ad992a2
StructurizeCFG: Add dependency on LowerSwitch pass

Switch instructions were crashing the StructurizeCFG pass, and it's
probably easier anyway if we don't need to handle them in this pass.

Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191841 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/StructurizeCFG.cpp
test/Transforms/StructurizeCFG/switch.ll [new file with mode: 0644]