[PATCH] D128635: AMDGPU: Mark more instructions as rematerializable

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 27 05:29:21 PDT 2022


arsenm created this revision.
arsenm added reviewers: AMDGPU, rampitec.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

D106023 <https://reviews.llvm.org/D106023> excluded 16-bit instructions from rematerialization, with the
justification that we can't rematerialize instructions that preserve
the high bits (plus the instructions which do are a confusing mess
between different subtargets). This doesn't make sense to me as a
problem since cases where we would rely on the high bit behavior would
still need to be represented as a register value constraint with a
tied operand. It's not a hidden side effect and should still be
rematerializable.


https://reviews.llvm.org/D128635

Files:
  llvm/lib/Target/AMDGPU/VOP2Instructions.td
  llvm/test/CodeGen/AMDGPU/remat-vop.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128635.440180.patch
Type: text/x-patch
Size: 71680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220627/9c83a071/attachment.bin>


More information about the llvm-commits mailing list