[llvm] [RISCV][GISEL][NFC] Make MRI a member in RISCVInstructionSelector (PR #110926)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 13:54:06 PDT 2024


================
@@ -509,19 +495,19 @@ static void getOperandsForBranch(Register CondReg, MachineRegisterInfo &MRI,
 bool RISCVInstructionSelector::select(MachineInstr &MI) {
   MachineBasicBlock &MBB = *MI.getParent();
   MachineFunction &MF = *MBB.getParent();
-  MachineRegisterInfo &MRI = MF.getRegInfo();
+  MRI = &MF.getRegInfo();
----------------
arsenm wrote:

This should go into a setupMF like other targets for function state setup 

https://github.com/llvm/llvm-project/pull/110926


More information about the llvm-commits mailing list