[llvm] [CodeGen] Remove static member function Register::virtReg2Index. NFC (PR #127962)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 19 22:33:18 PST 2025
================
@@ -93,7 +93,7 @@ bool WebAssemblyReplacePhysRegs::runOnMachineFunction(MachineFunction &MF) {
FI->setFrameBaseVreg(VReg);
LLVM_DEBUG({
dbgs() << "replacing preg " << PReg << " with " << VReg << " ("
- << Register::virtReg2Index(VReg) << ")\n";
+ << Register(VReg).virtRegIndex() << ")\n";
----------------
arsenm wrote:
This should use printReg
https://github.com/llvm/llvm-project/pull/127962
More information about the llvm-commits
mailing list