[llvm] [RISCV][GISel] Move G_BRJT expansion to legalization (PR #73711)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 23:51:52 PST 2024
================
@@ -317,6 +318,61 @@ bool RISCVLegalizerInfo::legalizeShlAshrLshr(
return true;
}
+bool RISCVLegalizerInfo::legalizeBRJT(MachineInstr &MI,
+ MachineIRBuilder &MIRBuilder) const {
+ MachineRegisterInfo &MRI = *MIRBuilder.getMRI();
----------------
topperc wrote:
Can we take this patch as is and I'll work on a refactoring into the legalizer as a follow up?
https://github.com/llvm/llvm-project/pull/73711
More information about the llvm-commits
mailing list