summaryrefslogtreecommitdiffstats
path: root/polly/lib
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@codeaurora.org>2014-06-13 18:00:22 +0000
committerJohannes Doerfert <jdoerfert@codeaurora.org>2014-06-13 18:00:22 +0000
commitfdd9f2b23da920f5e3f09fa0a328429b3cffff88 (patch)
tree5478c69eaf7ee988b937fa782c2db52c648dfcef /polly/lib
parente8b07ed080ec11a32de21ac1af5da2bbf3d62281 (diff)
downloadbcm5719-llvm-fdd9f2b23da920f5e3f09fa0a328429b3cffff88.tar.gz
bcm5719-llvm-fdd9f2b23da920f5e3f09fa0a328429b3cffff88.zip
[Refactor] Simplify dependency map dump
llvm-svn: 210926
Diffstat (limited to 'polly/lib')
-rw-r--r--polly/lib/Analysis/Dependences.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/polly/lib/Analysis/Dependences.cpp b/polly/lib/Analysis/Dependences.cpp
index c6d258a907a..ffa8ef8304b 100644
--- a/polly/lib/Analysis/Dependences.cpp
+++ b/polly/lib/Analysis/Dependences.cpp
@@ -298,24 +298,20 @@ bool Dependences::isParallelDimension(__isl_take isl_set *ScheduleSubset,
return IsParallel;
}
-void Dependences::printScop(raw_ostream &OS) const {
- OS << "\tRAW dependences:\n\t\t";
- if (RAW)
- OS << RAW << "\n";
+static void printDependencyMap(raw_ostream &OS, __isl_keep isl_union_map *DM) {
+ if (DM)
+ OS << DM << "\n";
else
OS << "n/a\n";
+}
+void Dependences::printScop(raw_ostream &OS) const {
+ OS << "\tRAW dependences:\n\t\t";
+ printDependencyMap(OS, RAW);
OS << "\tWAR dependences:\n\t\t";
- if (WAR)
- OS << WAR << "\n";
- else
- OS << "n/a\n";
-
+ printDependencyMap(OS, WAR);
OS << "\tWAW dependences:\n\t\t";
- if (WAW)
- OS << WAW << "\n";
- else
- OS << "n/a\n";
+ printDependencyMap(OS, WAW);
}
void Dependences::releaseMemory() {
OpenPOWER on IntegriCloud