diff options
author | Fabian Ritter <fabian.ritter@amd.com> | 2025-09-18 15:01:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-18 15:01:07 +0200 |
commit | 01b4b2a5b88c4b93d635a5049fa85e569b405982 (patch) | |
tree | 2d35eedf2da663fff5367e93b27bd9f8f20fad84 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 72596b333fef81275d281081cfdb63f3f1eb940a (diff) | |
download | llvm-01b4b2a5b88c4b93d635a5049fa85e569b405982.zip llvm-01b4b2a5b88c4b93d635a5049fa85e569b405982.tar.gz llvm-01b4b2a5b88c4b93d635a5049fa85e569b405982.tar.bz2 |
[AMDGPU][SDAG] Handle ISD::PTRADD in VOP3 patterns (#143881)
This patch mirrors similar patterns for ISD::ADD. The main difference is
that ISD::ADD is commutative, so that a pattern definition for, e.g.,
(add (mul x, y), z), automatically also handles (add z, (mul x, y)).
ISD::PTRADD is not commutative, so we would need to handle these cases
explicitly. This patch only implements (ptradd z, (op x, y)) patterns,
where the nested operation (shift or multiply) is the offset of the
ptradd (i.e., the right operand), since base pointers that are the
result of a shift or multiply seem less likely.
For SWDEV-516125.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions