[llvm] [AMDGPU][GlobalISel] Add RegBankLegalize support for G_READCYCLECOUNTER (PR #165754)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 15:16:18 PDT 2025


================
@@ -915,6 +915,8 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
 
   addRulesForGOpcs({G_READSTEADYCOUNTER}, Standard).Uni(S64, {{Sgpr64}, {}});
 
+  addRulesForGOpcs({G_READCYCLECOUNTER}).Any({{UniS64}, {{Sgpr64}, {}}});
----------------
arsenm wrote:

This should be identical / group with G_READSTEADYCOUNTER above 

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


More information about the llvm-commits mailing list