[PATCH] D88440: RegAllocFast: Add extra DBG_VALUE for live out spills

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 12:37:42 PDT 2020


arsenm created this revision.
arsenm added reviewers: qcolombet, aprantl, echristo, debug-info.
Herald added subscribers: hiraditya, MatzeB.
Herald added a project: LLVM.
arsenm requested review of this revision.
Herald added subscribers: ormris, wdng.

This allows LiveDebugValues to insert the proper DBG_VALUEs in live
out blocks if a spill is inserted before the use of a
register. Previously, this would see the register use as the last
DBG_VALUE, even though the stack slot should be treated as the live
out value.

      

This avoids an lldb test regression when D52010 <https://reviews.llvm.org/D52010> is re-applied.


https://reviews.llvm.org/D88440

Files:
  llvm/lib/CodeGen/RegAllocFast.cpp
  llvm/test/CodeGen/X86/fast-regalloc-live-out-debug-values.mir
  llvm/test/DebugInfo/X86/fission-ranges.ll
  llvm/test/DebugInfo/X86/op_deref.ll
  llvm/test/DebugInfo/X86/parameters.ll
  llvm/test/DebugInfo/X86/sret.ll
  llvm/test/DebugInfo/X86/subreg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88440.294780.patch
Type: text/x-patch
Size: 19551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200928/05bbe093/attachment.bin>


More information about the llvm-commits mailing list