[PATCH] D85643: AMDGPU: Fix visiting physreg dest users when folding immediate copies

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 05:40:29 PDT 2020


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

This can fold the immediate into the physical destination, but this
should not look for further users of the register. Fixes regression
introduced by 766cb615a3b96025192707f4670cdf171da84034 <https://reviews.llvm.org/rG766cb615a3b96025192707f4670cdf171da84034>.


https://reviews.llvm.org/D85643

Files:
  llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
  llvm/test/CodeGen/AMDGPU/fold-imm-copy.mir
  llvm/test/CodeGen/AMDGPU/visit-physreg-vgpr-imm-folding-bug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85643.284330.patch
Type: text/x-patch
Size: 4624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200810/e0470f6b/attachment.bin>


More information about the llvm-commits mailing list