[llvm] AMDGPU/GlobalISel: RegBankLegalize rules for amdgcn_exp/exp_row (PR #181956)
Petar Avramovic via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 18 03:17:12 PST 2026
================
@@ -1564,6 +1565,16 @@ bool RegBankLegalizeHelper::applyMappingSrc(
SgprWaterfallOperandRegs.insert(Reg);
break;
}
+ case ForceSgprB32: {
----------------
petar-avramovic wrote:
This needs more review,
Note that ForceSgprB32 is related to "what SDAG does" and possibly to "how intrinsics are defined".
In similar existing (divergent input for operand that must be in sgpr) cases we do "waterfall expansion" the Sgpr32_WF
But for some cases, SDAG just does readfirstlane
This was tested and it works, but I am not sure how correct it is
https://github.com/llvm/llvm-project/pull/181956
More information about the llvm-commits
mailing list