[llvm] [AMDGPU] Insert spill codes for the SGPRs used for EXEC copy (PR #79428)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 07:46:31 PST 2024


================
@@ -137,5 +137,10 @@ bool SILowerWWMCopies::runOnMachineFunction(MachineFunction &MF) {
     }
   }
 
+  // SGPRs reserved for exec copy should be preserved as we encountered WWM_COPY
+  // instances.
+  if (Changed)
+    MFI->setPreserveExecCopyReservedReg();
----------------
arsenm wrote:

Do you really need to track a separate field for this? Can't you just check if RegForExecCopy is used?

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


More information about the llvm-commits mailing list