R600: Fix a crash in the AMDILCFGStructurizer
authorTom Stellard <thomas.stellard@amd.com>
Wed, 16 Oct 2013 17:06:02 +0000 (17:06 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 16 Oct 2013 17:06:02 +0000 (17:06 +0000)
commita4f468f245d6e6869317007c548ee4d33ad97343
tree215d98a1528e2a1597363fff96aa9fbbdb91199b
parentc4822e0518f3ca547065424679ff4297dd8bb426
R600: Fix a crash in the AMDILCFGStructurizer

We were calling llvm_unreachable() when failing to optimize the
branch into if case.  However, it is still possible for us
to structurize the CFG by duplicating blocks even if this optimization
fails.

Reviewed-by: Vincent Lejeune<vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192813 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDILCFGStructurizer.cpp
test/CodeGen/R600/structurize.ll [new file with mode: 0644]