[llvm] AMDGPU/GlobalISel: RegBankLegalize rules for s_wait intrinsics (PR #186254)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 13 10:09:23 PDT 2026


================
@@ -1455,6 +1451,15 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
 
   addRulesForIOpcs({amdgcn_s_sleep}).Any({{_, _}, {{}, {IntrId, Imm}}});
 
+  addRulesForIOpcs({amdgcn_s_wait_event_export_ready}).Any({{}, {{}, {}}});
----------------
vangthao95 wrote:

There are more (like s_barrier), should we group them? We could also remove the explicit Imm from the line below since we do not apply any regbank mappings to immediates. Then combine both lines.

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


More information about the llvm-commits mailing list