[llvm] [AMDGPU] Do not forward reserved aperture registers into wider copies (PR #220517)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 2 01:53:55 PDT 2026


================
@@ -1189,6 +1189,15 @@ void SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
 
   ArrayRef<int16_t> SubIndices = RI.getRegSplitParts(RC, EltSize);
 
+  // Report rather than assert if a register is missing a required subreg.
+  for (int16_t SubIdx : SubIndices) {
----------------
arsenm wrote:

I think making this an error here is the wrong thing. We should either:
1. Make this a verifier error
2. Handle it by introducing a temporary sreg_64 (but that's hard, as I note below)

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


More information about the llvm-commits mailing list