[PATCH] D99376: [AMDGPU] Mark additional VOP3 as commutable

Joe Nash via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 25 13:33:50 PDT 2021


Joe_Nash created this revision.
Joe_Nash added reviewers: foad, rampitec, arsenm.
Herald added subscribers: wenlei, kerbowa, steven_wu, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
Joe_Nash requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Note, only src0 and src1 will be commuted if the isCommutable flag
is set. This patch does not change that, it just makes it possible
to commute src0 and src1 of more instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99376

Files:
  llvm/lib/Target/AMDGPU/VOP3Instructions.td
  llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.atomic.dim.a16.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.a16.dim.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.sample.ltolz.a16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99376.333411.patch
Type: text/x-patch
Size: 17994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210325/ce1f885c/attachment.bin>


More information about the llvm-commits mailing list