[PATCH] D113017: [AMDGPU] Avoid copying dead subregisters in copyPhysReg

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 07:00:14 PDT 2022


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:909-910
+
+    if (LiveRegs.available(MRI, SrcSubReg))
+      continue;
+
----------------
arsenm wrote:
> I don't understand how you can simply skip here
It's copying a dead subreg, so there's no need to insert any copy instruction.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113017



More information about the llvm-commits mailing list