[llvm] [GlobalISel][AMDGPU][AArch64] Fix GlobalISel copy propagation (PR #188781)

Igor Wodiany via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 07:09:20 PDT 2026


================
@@ -1048,8 +1048,12 @@ static bool selectCopy(MachineInstr &I, const TargetInstrInfo &TII,
 
     const TypeSize SrcSize = TRI.getRegSizeInBits(*SrcRC);
     const TypeSize DstSize = TRI.getRegSizeInBits(*DstRC);
+    unsigned SrcSubReg = I.getOperand(1).getSubReg();
     unsigned SubReg;
 
+    if (SrcSubReg && RBI.constrainGenericRegister(DstReg, *DstRC, MRI))
+      return true;
----------------
IgWod wrote:

Done, thanks!

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


More information about the llvm-commits mailing list