Reapply D124184, [DebugInfo][InstrRef] Add a size operand to DBG_PHI
authorJeremy Morse <jeremy.morse@sony.com>
Tue, 26 Apr 2022 10:08:05 +0000 (11:08 +0100)
committerJeremy Morse <jeremy.morse@sony.com>
Tue, 26 Apr 2022 14:49:22 +0000 (15:49 +0100)
commit65d5beca13e65b4ae5f421b6d6b8e38bee210544
treec271e5c370925f368f88d45e59ede8e7e6313e3c
parent39ce68886b4900dc63a90e90561ee19f5c7c07dc
Reapply D124184, [DebugInfo][InstrRef] Add a size operand to DBG_PHI

This was reverted twice, in 987cd7c3ed75b and 13815e8cbf8d4. The latter
stemed from not accounting for rare register classes in a pre-allocated
array, and the former from an array not being completely initialized,
leading to asan complaining.
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
llvm/lib/CodeGen/LiveDebugVariables.cpp
llvm/test/DebugInfo/MIR/InstrRef/dbg-phis-in-ldv2.mir [new file with mode: 0644]
llvm/test/DebugInfo/MIR/InstrRef/phi-on-stack-coalesced.mir [new file with mode: 0644]
llvm/test/DebugInfo/MIR/InstrRef/phi-on-stack-coalesced2.mir [new file with mode: 0644]
llvm/test/DebugInfo/MIR/InstrRef/phi-regallocd-to-stack.mir
llvm/unittests/CodeGen/InstrRefLDVTest.cpp