[DebugInfo][Dexter] Unreachable line stepped onto after SimplifyCFG.
authorCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Thu, 25 Oct 2018 09:58:59 +0000 (09:58 +0000)
committerCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Thu, 25 Oct 2018 09:58:59 +0000 (09:58 +0000)
commit9a24e1a7cd0e7d24f0eaad8096617fdbfbc67fda
tree430d7a048fee7551702315272f200109c3f0a542
parentd87196488715e363d2689a0f3950546ba6df1791
[DebugInfo][Dexter] Unreachable line stepped onto after SimplifyCFG.

When SimplifyCFG changes the PHI node into a select instruction, the debug line records becomes ambiguous. It causes the debugger to display unreachable source lines.

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

llvm-svn: 345250
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/Utils/Local.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/CodeGen/X86/pr38762.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/pr38763.ll
llvm/test/CodeGen/X86/pr39243.ll [new file with mode: 0644]