RegAllocFast: Add extra DBG_VALUE for live out spills
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 28 Sep 2020 17:42:17 +0000 (13:42 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 30 Sep 2020 14:35:25 +0000 (10:35 -0400)
commita66fca44ac926b25820f0e9344db1947d966291b
tree644d70fc2257f60b915de09e959a544e6a886025
parent89baeaef2fa9a2441d087a218ac82e11a5d4e548
RegAllocFast: Add extra DBG_VALUE for live out spills

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 is re-applied.
llvm/lib/CodeGen/RegAllocFast.cpp
llvm/test/CodeGen/X86/fast-regalloc-live-out-debug-values.mir [new file with mode: 0644]
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