[PATCH] D141101: [AMDGPU] More selectively attach implicit operands to agpr spills

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 05:44:28 PST 2023


arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.

LGTM with nit. The verifier will catch the cases that are wrong. I'd still prefer to not do this optimization here in the first place, or at least to avoid direct overlaps checks by using regunit liveness checking



================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:1563
       }
-      if (IsSubReg || NeedSuperRegImpOperand) {
+      if ((IsSubReg ||NeedSuperRegImpOperand) && (IsFirstSubReg || IsLastSubReg)) {
         NeedSuperRegImpOperand = true;
----------------
Lost a space after ||


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141101



More information about the llvm-commits mailing list