Skip to content
  1. Mar 22, 2011
  2. Mar 18, 2011
    • Jakob Stoklund Olesen's avatar
      Extend live debug values down the dominator tree by following copies. · 816f5f4c
      Jakob Stoklund Olesen authored
      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.
      
      llvm-svn: 127912
      816f5f4c
  3. Feb 04, 2011
    • Devang Patel's avatar
      DebugLoc associated with a machine instruction is used to emit location... · 26ffa018
      Devang Patel authored
      DebugLoc associated with a machine instruction is used to emit location entries. DebugLoc associated with a DBG_VALUE is used to identify lexical scope of the variable. After register allocation, while inserting DBG_VALUE remember original debug location for the first instruction and reuse it, otherwise dwarf writer may be mislead in identifying the variable's scope.
      
      llvm-svn: 124845
      26ffa018
  4. Jan 14, 2011
  5. Jan 13, 2011
  6. Jan 12, 2011
  7. Jan 11, 2011
  8. Jan 10, 2011
  9. Jan 09, 2011
  10. Jan 07, 2011
  11. Dec 03, 2010
  12. Dec 02, 2010
    • Jakob Stoklund Olesen's avatar
      Update LiveDebugVariables during coalescing. · 9ec20111
      Jakob Stoklund Olesen authored
      llvm-svn: 120720
      9ec20111
    • Jakob Stoklund Olesen's avatar
      Implement the first half of LiveDebugVariables. · 4be0bd79
      Jakob Stoklund Olesen authored
      Scan the MachineFunction for DBG_VALUE instructions, and replace them with a
      data structure similar to LiveIntervals. The live range of a DBG_VALUE is
      determined by propagating it down the dominator tree until a new DBG_VALUE is
      found. When a DBG_VALUE lives in a register, its live range is confined to the
      live range of the register's value.
      
      LiveDebugVariables runs before coalescing, so DBG_VALUEs are not artificially
      extended when registers are joined.
      
      The missing half will recreate DBG_VALUE instructions from the intervals when
      register allocation is complete.
      
      The pass is disabled by default. It can be enabled with the temporary command
      line option -live-debug-variables.
      
      llvm-svn: 120636
      4be0bd79
  13. Nov 30, 2010
    • Jakob Stoklund Olesen's avatar
      Stub out a new LiveDebugVariables pass. · d4900a64
      Jakob Stoklund Olesen authored
      This analysis is going to run immediately after LiveIntervals. It will stay
      alive during register allocation and keep track of user variables mentioned in
      DBG_VALUE instructions.
      
      When the register allocator is moving values between registers and the stack, it
      is very hard to keep track of DBG_VALUE instructions. We usually get it wrong.
      This analysis maintains a data structure that makes it easy to update DBG_VALUE
      instructions.
      
      llvm-svn: 120385
      d4900a64
Loading