[all-commits] [llvm/llvm-project] d9eebe: [DebugInfo][InstrRef] Add unit tests for transfer-...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Fri Oct 22 10:29:35 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d9eebe3cd7832b69471b27e68f0ee6f1374ed759
https://github.com/llvm/llvm-project/commit/d9eebe3cd7832b69471b27e68f0ee6f1374ed759
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2021-10-22 (Fri, 22 Oct 2021)
Changed paths:
M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
M llvm/unittests/CodeGen/InstrRefLDVTest.cpp
Log Message:
-----------
[DebugInfo][InstrRef] Add unit tests for transfer-function building
This patch adds some unit tests for the machine-location transfer-function
building parts of InstrRefBasedLDV: i.e., test that if we feed some MIR
into the transfer-function building code, does it create the correct
transfer function.
There are a number of minor defects that get corrected in the process:
* The unit test was selecting the x86 (i.e. 32 bit) backend rather than
x86_64's 64 bit backend,
* COPY instructions weren't actually having their subregister values
correctly represented in the transfer function. Subregisters were being
defined by the COPY, rather than taking the value in the source register.
* SP aliases were at risk of being clobbered, if an SP subregister was
clobbered.
Differential Revision: https://reviews.llvm.org/D112006
More information about the All-commits
mailing list