[llvm-commits] [llvm] r74754 - /llvm/trunk/lib/Analysis/LoopDependenceAnalysis.cpp
Andreas Bolka
a at bolka.at
Thu Jul 2 18:42:53 PDT 2009
Author: abolka
Date: Thu Jul 2 20:42:52 2009
New Revision: 74754
URL: http://llvm.org/viewvc/llvm-project?rev=74754&view=rev
Log:
Minor improvement to the LDA debug output.
Modified:
llvm/trunk/lib/Analysis/LoopDependenceAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/LoopDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopDependenceAnalysis.cpp?rev=74754&r1=74753&r2=74754&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopDependenceAnalysis.cpp Thu Jul 2 20:42:52 2009
@@ -133,13 +133,18 @@
raw_ostream &OS, LoopDependenceAnalysis *LDA, const Loop *L) {
if (!L->empty()) return; // ignore non-innermost loops
+ SmallVector<Instruction*, 8> memrefs;
+ GetMemRefInstrs(L, memrefs);
+
OS << "Loop at depth " << L->getLoopDepth() << ", header block: ";
WriteAsOperand(OS, L->getHeader(), false);
OS << "\n";
- SmallVector<Instruction*, 8> memrefs;
- GetMemRefInstrs(L, memrefs);
OS << " Load/store instructions: " << memrefs.size() << "\n";
+ for (SmallVector<Instruction*, 8>::const_iterator x = memrefs.begin(),
+ end = memrefs.end(); x != end; ++x)
+ OS << "\t" << (x - memrefs.begin()) << ": " << **x;
+
OS << " Pairwise dependence results:\n";
for (SmallVector<Instruction*, 8>::const_iterator x = memrefs.begin(),
end = memrefs.end(); x != end; ++x)
More information about the llvm-commits
mailing list