Dump YAML schedule tree as properly indented tree in DEBUG output

llvm-svn: 238645
This commit is contained in:
Tobias Grosser 2015-05-30 06:46:59 +00:00
parent d6a50b3a1e
commit 97d8745087
1 changed files with 8 additions and 1 deletions

View File

@ -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);