Update LiveDebugVariables after live range splitting.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 6 May 2011 18:00:02 +0000 (18:00 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 6 May 2011 18:00:02 +0000 (18:00 +0000)
commitf42b66169d75301346e3685fd2b3e45e47806367
tree4a39d7419392185f07025fac9e4f869039014539
parente77150bbcbf1f53b3830904be4d243c618c00b14
Update LiveDebugVariables after live range splitting.

After a virtual register is split, update any debug user variables that resided
in the old register. This ensures that the LiveDebugVariables are still correct
after register allocation.

This may create DBG_VALUE instructions that place a user variable in a register
in parts of the function and in a stack slot in other parts. DwarfDebug
currently doesn't support that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveDebugVariables.cpp
lib/CodeGen/LiveDebugVariables.h
lib/CodeGen/LiveRangeEdit.h
lib/CodeGen/RegAllocGreedy.cpp