summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2015-05-18 15:36:57 +0000
committerAdam Nemet <anemet@apple.com>2015-05-18 15:36:57 +0000
commitc3384320f28d19f09d8bc8b9a63041a1b3581553 (patch)
tree348e28e4bbaa419537f9ec9b4f239aa9d5a6e7b9 /llvm/lib/Analysis
parentf10ca2788400584c3e2363280894b5cfe0595649 (diff)
downloadbcm5719-llvm-c3384320f28d19f09d8bc8b9a63041a1b3581553.tar.gz
bcm5719-llvm-c3384320f28d19f09d8bc8b9a63041a1b3581553.zip
[LoopAccesses] Rearrange printed lines in -analyze
"Store to invariant address..." is moved as the last line. This is not the prime result of the analysis. Plus it simplifies some of the tests. llvm-svn: 237573
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/LoopAccessAnalysis.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 86f7c2e9757..580491ff536 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -1330,10 +1330,6 @@ void LoopAccessInfo::print(raw_ostream &OS, unsigned Depth) const {
OS.indent(Depth) << "Memory dependences are safe\n";
}
- OS.indent(Depth) << "Store to invariant address was "
- << (StoreToLoopInvariantAddress ? "" : "not ")
- << "found in loop.\n";
-
if (Report)
OS.indent(Depth) << "Report: " << Report->str() << "\n";
@@ -1349,6 +1345,10 @@ void LoopAccessInfo::print(raw_ostream &OS, unsigned Depth) const {
// List the pair of accesses need run-time checks to prove independence.
PtrRtCheck.print(OS, Depth);
OS << "\n";
+
+ OS.indent(Depth) << "Store to invariant address was "
+ << (StoreToLoopInvariantAddress ? "" : "not ")
+ << "found in loop.\n";
}
const LoopAccessInfo &
OpenPOWER on IntegriCloud