summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2018-07-17 06:33:31 +0000
committerTobias Grosser <tobias@grosser.es>2018-07-17 06:33:31 +0000
commitff5ac081adb5e8791540dc73dd9154dfb0fe061c (patch)
tree3eadac8fe4050aa647eb5bded1fbc8db50926d2d /polly
parentef800ff1ff55eb2505db33cf198bfca8e76dd334 (diff)
[ForwardOpTree] Replace isl foreach calls with for loops
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/Transform/ForwardOpTree.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/polly/lib/Transform/ForwardOpTree.cpp b/polly/lib/Transform/ForwardOpTree.cpp
index 17985ecf11f..f49b6733184 100644
--- a/polly/lib/Transform/ForwardOpTree.cpp
+++ b/polly/lib/Transform/ForwardOpTree.cpp
@@ -243,27 +243,27 @@ private:
// (i.e. not: { Dom[0] -> A[0]; Dom[1] -> B[1] }).
// Look through all spaces until we find one that contains at least the
// wanted statement instance.s
- MustKnown.foreach_map([&](isl::map Map) -> isl::stat {
+ for (isl::map Map : MustKnown.get_map_list()) {
// Get the array this is accessing.
isl::id ArrayId = Map.get_tuple_id(isl::dim::out);
ScopArrayInfo *SAI = static_cast<ScopArrayInfo *>(ArrayId.get_user());
// No support for generation of indirect array accesses.
if (SAI->getBasePtrOriginSAI())
- return isl::stat::ok; // continue
+ continue;
// Determine whether this map contains all wanted values.
isl::set MapDom = Map.domain();
if (!Domain.is_subset(MapDom).is_true())
- return isl::stat::ok; // continue
+ continue;
// There might be multiple array elements that contain the same value, but
// choose only one of them. lexmin is used because it returns a one-value
// mapping, we do not care about which one.
// TODO: Get the simplest access function.
Result = Map.lexmin();
- return isl::stat::error; // break
- });
+ break;
+ }
return Result;
}