Skip to content

Commit a3cc4b6

Browse files
[RISCV][GISEL][NFC] Make MRI a member in RISCVInstructionSelector (#110926)
It was requested in #110782 (comment) that MRI be made a member of RISCVInstructionSelector. RISCVInstructionSelector is created in the RISCVSubtarget, independent of MachineFunction. So it cannot be passed by reference during construction of RISCVInstructionSelector. The MachineRegisterInfo object belongs to each MachineFunction, so set it in setupMF.
1 parent 097379a commit a3cc4b6

File tree

1 file changed

+99
-118
lines changed

1 file changed

+99
-118
lines changed

0 commit comments

Comments
 (0)