[llvm] [AMDGPU] Mark AGPR tuple implicit in the first instr of AGPR spills. (PR #115285)

Pravin Jagtap via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 20:48:02 PST 2024


================
@@ -1808,6 +1808,8 @@ void SIRegisterInfo::buildSpillLoadStore(
                            .addReg(SubReg, getKillRegState(IsKill));
         if (NeedSuperRegDef)
           AccRead.addReg(ValueReg, RegState::ImplicitDefine);
+        if (NeedSuperRegImpOperand && (IsFirstSubReg || IsLastSubReg))
----------------
pravinjagtap wrote:

This is based on [D141101](https://reviews.llvm.org/D141101).
By marking implicit to only first and last, we will free up some unneeded dependencies for the post-ra scheduler.
CC @jrbyrnes 

https://github.com/llvm/llvm-project/pull/115285


More information about the llvm-commits mailing list