mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Verify that live intervals are connected. If there are multiple connected
components, each should get its own virtual register. llvm-svn: 117407
This commit is contained in:
parent
fa777d622d
commit
3bf3211458
@ -167,7 +167,7 @@ namespace {
|
||||
|
||||
// Analysis information if available
|
||||
LiveVariables *LiveVars;
|
||||
const LiveIntervals *LiveInts;
|
||||
LiveIntervals *LiveInts;
|
||||
SlotIndexes *Indexes;
|
||||
|
||||
void visitMachineFunctionBefore();
|
||||
@ -1067,6 +1067,14 @@ void MachineVerifier::verifyLiveIntervals() {
|
||||
++MFI;
|
||||
}
|
||||
}
|
||||
|
||||
// Check the LI only has one connected component.
|
||||
ConnectedVNInfoEqClasses ConEQ(*LiveInts);
|
||||
unsigned NumComp = ConEQ.Classify(&LI);
|
||||
if (NumComp > 1) {
|
||||
report("Multiple connected components in live interval", MF);
|
||||
*OS << NumComp << " components in " << LI << '\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user