mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
Minor improvement to the LDA debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ff50b380e
commit
292aef33e1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user