[DWARF] LLVM ERROR: Broken function found, while removing Debug Intrinsics.
authorCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Mon, 11 Feb 2019 10:16:38 +0000 (10:16 +0000)
committerCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Mon, 11 Feb 2019 10:16:38 +0000 (10:16 +0000)
Check that when SimplifyCFG is flattening a 'br', all their debug intrinsic instructions are removed, including any dbg.label referencing a label associated with the basic blocks being removed.

As the test case involves a CFG transformation, move it to the correct location.

Differential Revision: https://reviews.llvm.org/D57444

llvm-svn: 353682

llvm/test/Transforms/SimplifyCFG/bbi-23595.ll [moved from llvm/test/CodeGen/X86/bbi-23595.ll with 100% similarity]