We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 022e779 commit 260fa28Copy full SHA for 260fa28
llvm/lib/CodeGen/MachineVerifier.cpp
@@ -167,7 +167,7 @@ namespace {
167
168
// Analysis information if available
169
LiveVariables *LiveVars;
170
- const LiveIntervals *LiveInts;
+ LiveIntervals *LiveInts;
171
SlotIndexes *Indexes;
172
173
void visitMachineFunctionBefore();
@@ -1067,6 +1067,14 @@ void MachineVerifier::verifyLiveIntervals() {
1067
++MFI;
1068
}
1069
1070
+
1071
+ // Check the LI only has one connected component.
1072
+ ConnectedVNInfoEqClasses ConEQ(*LiveInts);
1073
+ unsigned NumComp = ConEQ.Classify(&LI);
1074
+ if (NumComp > 1) {
1075
+ report("Multiple connected components in live interval", MF);
1076
+ *OS << NumComp << " components in " << LI << '\n';
1077
+ }
1078
1079
1080
0 commit comments