Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/polly/lib
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-05-30 09:46:59 +0300
committerTobias Grosser <tobias@grosser.es>2015-05-30 09:46:59 +0300
commit97d87450870de843d4dfe27f256813d51297b8a8 (patch)
tree3989a0f4d11d8b037facab87914e46c3f8d16e59 /polly/lib
parentd6a50b3a1e8b822b0569d9e9651327bc33f3cfd2 (diff)
Dump YAML schedule tree as properly indented tree in DEBUG output
llvm-svn: 238645
Diffstat (limited to 'polly/lib')
-rw-r--r--polly/lib/Transform/ScheduleOptimizer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index 97b701c11308..573e21dcfe7b 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -30,6 +30,7 @@
#include "isl/constraint.h"
#include "isl/map.h"
#include "isl/options.h"
+#include "isl/printer.h"
#include "isl/schedule.h"
#include "isl/schedule_node.h"
#include "isl/space.h"
@@ -454,7 +455,13 @@ bool IslScheduleOptimizer::runOnScop(Scop &S) {
if (!Schedule)
return false;
- DEBUG(dbgs() << "Schedule := " << stringFromIslObj(Schedule) << ";\n");
+ DEBUG({
+ auto *P = isl_printer_to_str(S.getIslCtx());
+ P = isl_printer_set_yaml_style(P, ISL_YAML_STYLE_BLOCK);
+ P = isl_printer_print_schedule(P, Schedule);
+ dbgs() << "NewScheduleTree: \n" << isl_printer_get_str(P) << "\n";
+ isl_printer_free(P);
+ });
isl_union_map *NewSchedule = getScheduleMap(Schedule);