diff options
author | Andreas Bolka <a@bolka.at> | 2009-07-03 01:42:52 +0000 |
---|---|---|
committer | Andreas Bolka <a@bolka.at> | 2009-07-03 01:42:52 +0000 |
commit | 1cd3fd633668491db87402d025bde9496c773ef4 (patch) | |
tree | 2313217a3288d0354a0ada27743deff5715b1296 /llvm/lib/Analysis | |
parent | 80baed63b43bc675bef889fcebeecf9b8d790611 (diff) | |
download | bcm5719-llvm-1cd3fd633668491db87402d025bde9496c773ef4.tar.gz bcm5719-llvm-1cd3fd633668491db87402d025bde9496c773ef4.zip |
Minor improvement to the LDA debug output.
llvm-svn: 74754
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/LoopDependenceAnalysis.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp index a49f18166dc..f6057839266 100644 --- a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp @@ -133,13 +133,18 @@ static void PrintLoopInfo( 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) |