[llvm] [CodeGen] Use non-static Register::virtRegIndex() instead of static Register::virtReg2Index. NFC (PR #125031)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 22:09:13 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");
----------------
topperc wrote:
These technically make it not NFC since printReg includes the %.
https://github.com/llvm/llvm-project/pull/125031
More information about the llvm-commits
mailing list