Skip to content

Commit

Permalink
unrename RegInfo: doesn't belong here
Browse files Browse the repository at this point in the history
  • Loading branch information
optimisan committed Oct 14, 2024
1 parent 4d77407 commit 9390926
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/lib/CodeGen/MIRParser/MIRParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,10 @@ MIRParserImpl::initializeMachineFunction(const yaml::MachineFunction &YamlMF,
bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
const yaml::MachineFunction &YamlMF) {
MachineFunction &MF = PFS.MF;
MachineRegisterInfo &MRI = MF.getRegInfo();
MachineRegisterInfo &RegInfo = MF.getRegInfo();
assert(RegInfo.tracksLiveness());
if (!YamlMF.TracksRegLiveness)
MRI.invalidateLiveness();
RegInfo.invalidateLiveness();

SMDiagnostic Error;
// Parse the virtual register information.
Expand Down Expand Up @@ -705,7 +705,7 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
FlagStringValue.Value + "'");
Info.Flags.push_back(FlagValue);
}
MRI.noteNewVirtualRegister(Info.VReg);
RegInfo.noteNewVirtualRegister(Info.VReg);
}

// Parse the liveins.
Expand All @@ -721,7 +721,7 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
return error(Error, LiveIn.VirtualRegister.SourceRange);
VReg = Info->VReg;
}
MRI.addLiveIn(Reg, VReg);
RegInfo.addLiveIn(Reg, VReg);
}

// Parse the callee saved registers (Registers that will
Expand All @@ -734,7 +734,7 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
return error(Error, RegSource.SourceRange);
CalleeSavedRegisters.push_back(Reg);
}
MRI.setCalleeSavedRegs(CalleeSavedRegisters);
RegInfo.setCalleeSavedRegs(CalleeSavedRegisters);
}

return false;
Expand Down

0 comments on commit 9390926

Please sign in to comment.