[llvm] [AMDGPU][GlobalISel] Add register bank legalize rules for amdgcn_icmp, amdgcn_fcmp (PR #172017)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 6 05:03:49 PDT 2026


================
@@ -1634,6 +1634,10 @@ static bool isLaneMaskFromSameBlock(Register Reg, MachineRegisterInfo &MRI,
       return true;
   }
 
+  // Lane mask generated by SCC to VCC copy (GlobalISel).
+  if (MI->getOpcode() == AMDGPU::G_AMDGPU_COPY_VCC_SCC)
+    return true;
----------------
petar-avramovic wrote:

this looks correct, but should go into different patch

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


More information about the llvm-commits mailing list