[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:50 PDT 2026
================
@@ -1566,6 +1566,32 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
addRulesForIOpcs({returnaddress}).Any({{UniP0}, {{SgprP0}, {}}});
+ addRulesForIOpcs({amdgcn_icmp})
+ .Any({{UniS64, _, UniS1},
+ {{Sgpr64}, {IntrId, Vcc, Sgpr32AExt}, IcmpI1ToBallot}})
+ .Any({{UniS64, _, DivS1},
+ {{Sgpr64}, {IntrId, Vcc, Sgpr32AExt}, IcmpI1ToBallot}})
----------------
petar-avramovic wrote:
can probably get away with just one rule, not much difference if input is scc or vcc (move to vcc aither way)
`.Any({{UniS64}, {{Sgpr64}, {IntrId, Vcc, Sgpr32AExt}, IcmpI1ToBallot}})`
https://github.com/llvm/llvm-project/pull/172017
More information about the llvm-commits
mailing list