[llvm] AMDGPU/GlobalISel: add RegBankLegalize rules for bitfield extract (PR #132381)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 01:47:27 PDT 2025
================
@@ -127,6 +131,112 @@ void RegBankLegalizeHelper::widenLoad(MachineInstr &MI, LLT WideTy,
MI.eraseFromParent();
}
+static bool isSignedBFE(MachineInstr &MI) {
+ if (isa<GIntrinsic>(MI)) {
----------------
Pierre-vh wrote:
nit: How about dyn_cast + use the `.is(IID)` helper?
https://github.com/llvm/llvm-project/pull/132381
More information about the llvm-commits
mailing list