Dont emit 'DBG_VALUE %noreg, ...' to terminate user variable ranges.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 22 Mar 2011 00:21:41 +0000 (00:21 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 22 Mar 2011 00:21:41 +0000 (00:21 +0000)
commite17232ee4de2f608f0e5d965368c2bc54b6c1e83
tree26966f7e10953f7a0a3f89022efe98e90e36a8fd
parentb55d6b6a7ea64f1cd168181f619aaa2f7080855a
Dont emit 'DBG_VALUE %noreg, ...' to terminate user variable ranges.

These ranges get completely jumbled by the post-ra scheduler, and it is not
really reasonable to expect it to make sense of them.

Instead, teach DwarfDebug to notice when user variables in registers are
clobbered, and terminate the ranges there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128045 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