[PATCH] D80065: AMDGPU: Fix illegally constant folding from V_MOV_B32_sdwa

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 16 11:05:38 PDT 2020


arsenm created this revision.
arsenm added reviewers: rampitec, vpykhtin, foad.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

This was assumed to be a simple move, and interpreting the immediate
modifier operand as a materialized immediate. Apparently the SDWA pass
never produces these, but GlobalISel does emit these for some vector
shuffles.


https://reviews.llvm.org/D80065

Files:
  llvm/lib/Target/AMDGPU/VOP1Instructions.td
  llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
  llvm/test/CodeGen/AMDGPU/atomic_optimizations_pixelshader.ll
  llvm/test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80065.264449.patch
Type: text/x-patch
Size: 9617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200516/9c604ed8/attachment.bin>


More information about the llvm-commits mailing list