[LiveDebugValues] Handle spill locations with a fixed and scalable component.
authorSander de Smalen <sander.desmalen@arm.com>
Wed, 6 Jan 2021 10:54:41 +0000 (10:54 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Wed, 6 Jan 2021 11:30:13 +0000 (11:30 +0000)
commit84a1120943a651184bae507fed5d648fee381ae4
treea97096094563d260ad2541524b9f27de15f37e8a
parent63dce70b794eb99ebbfdeed3ca9aafca2b8fe5c4
[LiveDebugValues] Handle spill locations with a fixed and scalable component.

This patch fixes the two LiveDebugValues implementations
(InstrRef/VarLoc)Based to handle cases where the StackOffset contains
both a fixed and scalable component.

This depends on the `TargetRegisterInfo::prependOffsetExpression` being
added in D90020. Feel free to leave comments on that patch if you have them.

Reviewed By: djtodoro, jmorse

Differential Revision: https://reviews.llvm.org/D90046
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
llvm/test/CodeGen/AArch64/live-debugvalues-sve.mir [new file with mode: 0644]