mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
Fix a MachineVerifier loop that probably didn't mean to skip the last two
virtual registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ca2102c72
commit
98c5476070
@ -925,8 +925,8 @@ void MachineVerifier::visitMachineFunctionAfter() {
|
||||
|
||||
void MachineVerifier::verifyLiveVariables() {
|
||||
assert(LiveVars && "Don't call verifyLiveVariables without LiveVars");
|
||||
for (unsigned Reg = TargetRegisterInfo::FirstVirtualRegister,
|
||||
RegE = MRI->getLastVirtReg()-1; Reg != RegE; ++Reg) {
|
||||
for (unsigned i = 0, e = MRI->getNumVirtRegs(); i != e; ++i) {
|
||||
unsigned Reg = TargetRegisterInfo::index2VirtReg(i);
|
||||
LiveVariables::VarInfo &VI = LiveVars->getVarInfo(Reg);
|
||||
for (MachineFunction::const_iterator MFI = MF->begin(), MFE = MF->end();
|
||||
MFI != MFE; ++MFI) {
|
||||
|
Loading…
Reference in New Issue
Block a user