[llvm] AMDGPU/GlobalISel: add RegBankLegalize rules for bitfield extract (PR #132381)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 04:14:38 PDT 2025
================
@@ -127,6 +132,112 @@ void RegBankLegalizeHelper::widenLoad(MachineInstr &MI, LLT WideTy,
MI.eraseFromParent();
}
+static bool isSignedBFE(MachineInstr &MI) {
+ if (GIntrinsic *GI = dyn_cast<GIntrinsic>(&MI)) {
+ if (GI->is(Intrinsic::amdgcn_sbfe))
+ return true;
----------------
arsenm wrote:
Can just return the GI->is, I don't think it's particularly important that this function only be called with the BFE ops
https://github.com/llvm/llvm-project/pull/132381
More information about the llvm-commits
mailing list