Physical registers trivially have multiple connected components all the time.

Only virtuals should be requires to be connected.

llvm-svn: 117422
This commit is contained in:
Jakob Stoklund Olesen 2010-10-27 00:39:01 +00:00
parent 6453c7cdf9
commit 4701c56446

View File

@ -1069,11 +1069,13 @@ void MachineVerifier::verifyLiveIntervals() {
} }
// Check the LI only has one connected component. // Check the LI only has one connected component.
ConnectedVNInfoEqClasses ConEQ(*LiveInts); if (TargetRegisterInfo::isVirtualRegister(LI.reg)) {
unsigned NumComp = ConEQ.Classify(&LI); ConnectedVNInfoEqClasses ConEQ(*LiveInts);
if (NumComp > 1) { unsigned NumComp = ConEQ.Classify(&LI);
report("Multiple connected components in live interval", MF); if (NumComp > 1) {
*OS << NumComp << " components in " << LI << '\n'; report("Multiple connected components in live interval", MF);
*OS << NumComp << " components in " << LI << '\n';
}
} }
} }
} }