aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorKeith Walker <kwalker@arm.com>2016-09-19 09:49:30 +0000
committerKeith Walker <kwalker@arm.com>2016-09-19 09:49:30 +0000
commitc941252374b901333cb6e9c3fa0345890137e46e (patch)
treed0831bdba7c6be9ae45a581f7e2f55894e66ba3c /lldb/source/Commands/CommandObjectThread.cpp
parente1f6dc59cefea03e5430e8d080195c58c595db7a (diff)
downloadllvm-c941252374b901333cb6e9c3fa0345890137e46e.zip
llvm-c941252374b901333cb6e9c3fa0345890137e46e.tar.gz
llvm-c941252374b901333cb6e9c3fa0345890137e46e.tar.bz2
Add @llvm.dbg.value entries for the phi node created by -mem2reg
When phi nodes are created in the -mem2reg phase, the @llvm.dbg.declare entries are converted to @llvm.dbg.value entries at the place where the store instructions existed. However no entry is created to describe the resulting value of the phi node. The effect of this is especially noticeable in for loops which have a constant for the intial value; the loop control variable's location would be described as the intial constant value in the loop body once the -mem2reg optimization phase was run. This change adds the creation of the @llvm.dbg.value entries to describe variables whose location is the result of a phi node created in -mem2reg. Also when the phi node is finally lowered to a machine instruction it is important that the lowered "load" instruction is placed before the associated DEBUG_VALUE entry describing the value loaded. Differential Revision: https://reviews.llvm.org/D23715 llvm-svn: 281895
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions