[DebugInfo][Dexter] Unreachable line stepped onto after SimplifyCFG.
authorCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Wed, 10 Oct 2018 08:29:55 +0000 (08:29 +0000)
committerCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Wed, 10 Oct 2018 08:29:55 +0000 (08:29 +0000)
commite7a347e5f89e0484bea76f67197a8c50d0abb313
tree21c6a1e5ad3119dca484d78a4f13b6d53a46c2ac
parent6e357123ed12e52fb93310594e495607335fbe84
[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/D52887

llvm-svn: 344120
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