summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopGraphPrinter.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-10-08 00:30:55 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-10-08 00:30:55 +0000
commit4f129a6b4323eeadb2136920460b02c54a9d7788 (patch)
treec34bcc896c958e5dbaee05276fb70eda09e4fadb /polly/lib/Analysis/ScopGraphPrinter.cpp
parentc4a0bd13ada188cb7343064e7bff4f278392848b (diff)
downloadbcm5719-llvm-4f129a6b4323eeadb2136920460b02c54a9d7788.tar.gz
bcm5719-llvm-4f129a6b4323eeadb2136920460b02c54a9d7788.zip
Show the reason a region is not a SCoP in the DOT graphs.
llvm-svn: 141458
Diffstat (limited to 'polly/lib/Analysis/ScopGraphPrinter.cpp')
-rw-r--r--polly/lib/Analysis/ScopGraphPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopGraphPrinter.cpp b/polly/lib/Analysis/ScopGraphPrinter.cpp
index d6de7b9f353..8137c0b039f 100644
--- a/polly/lib/Analysis/ScopGraphPrinter.cpp
+++ b/polly/lib/Analysis/ScopGraphPrinter.cpp
@@ -107,7 +107,8 @@ struct DOTGraphTraits<ScopDetection*> : public DOTGraphTraits<RegionNode*> {
raw_ostream &O, unsigned depth = 0) {
O.indent(2 * depth) << "subgraph cluster_" << static_cast<const void*>(R)
<< " {\n";
- O.indent(2 * (depth + 1)) << "label = \"\";\n";
+ std::string ErrorMessage = SD->regionIsInvalidBecause(R);
+ O.indent(2 * (depth + 1)) << "label = \"" << ErrorMessage << "\";\n";
if (SD->isMaxRegionInScop(*R)) {
O.indent(2 * (depth + 1)) << "style = filled;\n";
OpenPOWER on IntegriCloud