Reapply r128045 and r128051 with fixes.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 22 Mar 2011 22:33:08 +0000 (22:33 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 22 Mar 2011 22:33:08 +0000 (22:33 +0000)
commit28cf1156c93afabedc69fe7b73aa92ce85e323a5
tree77c5119c99f622fd522dbc8e1e59f1057463c3d1
parent27c6baeca23be295d13da6a010d203b280058444
Reapply r128045 and r128051 with fixes.

This will extend the ranges of debug info variables in registers until they are
clobbered.

Fix 1: Don't mistake DBG_VALUE instructions referring to incoming arguments on
the stack with DBG_VALUE instructions referring to variables in the frame
pointer. This fixes the gdb test-suite failure.

Fix 2: Don't trace through copies to physical registers setting up call
arguments. These registers are call clobbered, and the source register is more
likely to be a callee-saved register that can be extended through the call
instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128114 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/LiveDebugVariables.cpp
test/CodeGen/X86/dbg-value-range.ll