[PATCH] D108830: [AMDGPU] Propagate defining src reg for AGPR to AGPR Copys

Vang Thao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 23 13:44:59 PDT 2021


vangthao updated this revision to Diff 374658.
vangthao added a comment.

Check if Reg is AGPR before doing anything in Copy switch case.
Remove isVirtual() check for Reg since index2VirtReg() guarantees virtual.
Defer LIS update until end.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108830/new/

https://reviews.llvm.org/D108830

Files:
  llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp
  llvm/test/CodeGen/AMDGPU/agpr-to-agpr-copy.mir
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mfma.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108830.374658.patch
Type: text/x-patch
Size: 14390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210923/7443ab71/attachment.bin>


More information about the llvm-commits mailing list