summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2018-07-17 06:33:37 +0000
committerTobias Grosser <tobias@grosser.es>2018-07-17 06:33:37 +0000
commit29bf0020509119a0d0b8798241c521b99a172b16 (patch)
tree9b953d6e9533ccc7b2beeb285199e459be678032 /polly
parent9778ebe29dce7b9f61e951143333b7965b0dd853 (diff)
[FlattenSchedule] Replace isl foreach calls with for loops
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/Transform/FlattenSchedule.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/polly/lib/Transform/FlattenSchedule.cpp b/polly/lib/Transform/FlattenSchedule.cpp
index fb07af6b0d8..52ff0b78287 100644
--- a/polly/lib/Transform/FlattenSchedule.cpp
+++ b/polly/lib/Transform/FlattenSchedule.cpp
@@ -18,6 +18,7 @@
#include "polly/ScopInfo.h"
#include "polly/ScopPass.h"
#include "polly/Support/ISLOStream.h"
+#include "polly/Support/ISLTools.h"
#define DEBUG_TYPE "polly-flatten-schedule"
using namespace polly;
@@ -30,10 +31,8 @@ namespace {
/// Prints the schedule for each statements on a new line.
void printSchedule(raw_ostream &OS, const isl::union_map &Schedule,
int indent) {
- Schedule.foreach_map([&OS, indent](isl::map Map) -> isl::stat {
+ for (isl::map Map : Schedule.get_map_list())
OS.indent(indent) << Map << "\n";
- return isl::stat::ok;
- });
}
/// Flatten the schedule stored in an polly::Scop.