[llvm] [NFC][LLVM][CodeGen] Refactor MIR Printer (PR #137361)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 22:33:25 PDT 2025


================
@@ -803,7 +772,7 @@ void MIPrinter::print(const MachineBasicBlock &MBB) {
 
 void MIPrinter::print(const MachineInstr &MI) {
   const auto *MF = MI.getMF();
-  const auto &MRI = MF->getRegInfo();
+  const auto &MRI = MI.getMF()->getRegInfo();
----------------
s-barannikov wrote:

Unnecessary change

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


More information about the llvm-commits mailing list