From b98755472ebe813251567f1f9eec69b8f468508d Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 29 Oct 2010 00:40:57 +0000 Subject: Print out the connected components in the verifier after complaining about their multiplicity. llvm-svn: 117630 --- llvm/lib/CodeGen/MachineVerifier.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 352c01d91d4..48597c25b3e 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -1080,6 +1080,14 @@ void MachineVerifier::verifyLiveIntervals() { if (NumComp > 1) { report("Multiple connected components in live interval", MF); *OS << NumComp << " components in " << LI << '\n'; + for (unsigned comp = 0; comp != NumComp; ++comp) { + *OS << comp << ": valnos"; + for (LiveInterval::const_vni_iterator I = LI.vni_begin(), + E = LI.vni_end(); I!=E; ++I) + if (comp == ConEQ.getEqClass(*I)) + *OS << ' ' << (*I)->id; + *OS << '\n'; + } } } } -- cgit v1.2.3