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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 06:26:03 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:

Move to verifier error?

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


More information about the llvm-commits mailing list