[DebugInfo][Dexter] Speculated BB presents illegal variable value to debugger.
authorCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Wed, 19 Sep 2018 08:16:56 +0000 (08:16 +0000)
committerCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Wed, 19 Sep 2018 08:16:56 +0000 (08:16 +0000)
commitba4e437c6ad18746cd2684410c6679be7d1376e4
tree119c123394149065fe5a4346f55fdaa6f7147e6d
parentf1f3e7377cd4baf5f23dd852492d715e0d290550
[DebugInfo][Dexter] Speculated BB presents illegal variable value to debugger.

When SimplifyCFG changes the PHI node into a select instruction, the debug information becomes ambiguous. It causes the debugger to display wrong variable value.

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

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