[PATCH] D108368: [AMDGPU] Fix too many constants with flat scratch
Sebastian Neubauer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 19 05:25:02 PDT 2021
sebastian-ne created this revision.
sebastian-ne added reviewers: arsenm, rampitec.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
sebastian-ne requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Prevent SIFoldOperands from creating SALU instructions with a constant
and a frame index. Previously, only one operand was checked to be a
frame index, leading to too many constants when flat scratch is enabled
and stack offsets are large.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108368
Files:
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
llvm/test/CodeGen/AMDGPU/flat-scratch.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108368.367467.patch
Type: text/x-patch
Size: 5961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210819/25489bc2/attachment.bin>
More information about the llvm-commits
mailing list