[llvm] [AMDGPU] Add regbankselect rules for G_ADD/SUB and variants (PR #159860)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 16 02:44:39 PDT 2025


================
@@ -482,9 +482,9 @@ bool AMDGPURegBankLegalize::runOnMachineFunction(MachineFunction &MF) {
     }
   }
 
-  assert(!getAnySgprS1(MRI).isValid() &&
-         "Registers with sgpr reg bank and S1 LLT are not legal after "
-         "AMDGPURegBankLegalize. Should lower to sgpr S32");
+  // assert(!getAnySgprS1(MRI).isValid() &&
+  //        "Registers with sgpr reg bank and S1 LLT are not legal after "
+  //        "AMDGPURegBankLegalize. Should lower to sgpr S32");
----------------
petar-avramovic wrote:

Assert is here for a reason, uniform S1 can't leave regbanklegalize

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


More information about the llvm-commits mailing list