[polly] r337244 - [FlattenSchedule] Replace isl foreach calls with for loops
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 16 23:33:38 PDT 2018
Author: grosser
Date: Mon Jul 16 23:33:37 2018
New Revision: 337244
URL: http://llvm.org/viewvc/llvm-project?rev=337244&view=rev
Log:
[FlattenSchedule] Replace isl foreach calls with for loops
Modified:
polly/trunk/lib/Transform/FlattenSchedule.cpp
Modified: polly/trunk/lib/Transform/FlattenSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/FlattenSchedule.cpp?rev=337244&r1=337243&r2=337244&view=diff
==============================================================================
--- polly/trunk/lib/Transform/FlattenSchedule.cpp (original)
+++ polly/trunk/lib/Transform/FlattenSchedule.cpp Mon Jul 16 23:33:37 2018
@@ -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.
More information about the llvm-commits
mailing list