[llvm] [CodeGen] Use non-static Register::virtRegIndex() instead of static Register::virtReg2Index. NFC (PR #125031)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 22:13:00 PST 2025


================
@@ -698,7 +698,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
         Def->getParent()->insert(std::next(InsertPos), MI);
       } else
         LLVM_DEBUG(dbgs() << "Dropping debug info for dead vreg"
-                          << Register::virtReg2Index(Reg) << "\n");
+                          << Reg.virtRegIndex() << "\n");
----------------
arsenm wrote:

I wouldn't consider exact debug printing to be F. It should be included for debug log consistency anyway 

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


More information about the llvm-commits mailing list