]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Extend live debug values down the dominator tree by following copies.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 18 Mar 2011 21:42:19 +0000 (21:42 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 18 Mar 2011 21:42:19 +0000 (21:42 +0000)
commit1744e476ec3df0350a1163bf2c6439ea21aefbba
tree2ae7a6eacade3d78a025c343b9fdd4848062b2af
parentb6192d2a9f05e05504470a6df0f4374a0424d7f3
Extend live debug values down the dominator tree by following copies.

The llvm.dbg.value intrinsic refers to SSA values, not virtual registers, so we
should be able to extend the range of a value by tracking that value through
register copies. This greatly improves the debug value tracking for function
arguments that for some reason are copied to a second virtual register at the
end of the entry block.

We only extend the debug value range where its register is killed. All original
llvm.dbg.value locations are still respected.

Copies from physical registers are ignored. That should not be a problem since
the entry block already adds DBG_VALUE instructions for the virtual registers
holding the function arguments.

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