Skip to content

Commit db84d8f

Browse files
committed
Disable more of physical register live intervals verification.
llvm-svn: 117762
1 parent 6d80833 commit db84d8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/MachineVerifier.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,8 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
609609
}
610610

611611
// Check LiveInts liveness and kill.
612-
if (LiveInts && !LiveInts->isNotInMIMap(MI)) {
612+
if (TargetRegisterInfo::isVirtualRegister(Reg) &&
613+
LiveInts && !LiveInts->isNotInMIMap(MI)) {
613614
SlotIndex UseIdx = LiveInts->getInstructionIndex(MI).getUseIndex();
614615
if (LiveInts->hasInterval(Reg)) {
615616
const LiveInterval &LI = LiveInts->getInterval(Reg);
@@ -618,7 +619,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
618619
*OS << UseIdx << " is not live in " << LI << '\n';
619620
}
620621
// TODO: Verify isKill == LI.killedAt.
621-
} else if (TargetRegisterInfo::isVirtualRegister(Reg)) {
622+
} else {
622623
report("Virtual register has no Live interval", MO, MONum);
623624
}
624625
}

0 commit comments

Comments
 (0)