[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


================
@@ -879,6 +893,14 @@ void MachineCopyPropagation::forwardUses(MachineInstr &MI) {
     if (MRI->isReserved(CopySrc) && !MRI->isConstantPhysReg(CopySrc))
       continue;
 
+    // A reserved source may lack subregs the copy is later split into.
+    if (MRI->isReserved(CopySrc) && isCopyInstr(MI, *TII, UseCopyInstr) &&
----------------
arsenm wrote:

Reserved isn't the key property 

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


More information about the llvm-commits mailing list