summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2018-06-06 13:10:32 +0000
committerTobias Grosser <tobias@grosser.es>2018-06-06 13:10:32 +0000
commit6a6d9df78e2567b89640ccec666c449cbd9a5018 (patch)
tree2e8364c717758282afd63136eb95f4725fadab8c /polly/lib/CodeGen
parent0c9e1c8d61e5d3044337fb93e947b14b703b479b (diff)
downloadbcm5719-llvm-6a6d9df78e2567b89640ccec666c449cbd9a5018.tar.gz
bcm5719-llvm-6a6d9df78e2567b89640ccec666c449cbd9a5018.zip
getDependences to new C++ interface
Reviewers: Meinersbur, grosser, bollu, cs15btech11044, jdoerfert Reviewed By: grosser Subscribers: pollydev, llvm-commits Tags: #polly Differential Revision: https://reviews.llvm.org/D47786 llvm-svn: 334092
Diffstat (limited to 'polly/lib/CodeGen')
-rw-r--r--polly/lib/CodeGen/IslAst.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp
index c0ad889bd26..0923726c87b 100644
--- a/polly/lib/CodeGen/IslAst.cpp
+++ b/polly/lib/CodeGen/IslAst.cpp
@@ -216,19 +216,23 @@ static bool astScheduleDimIsParallel(__isl_keep isl_ast_build *Build,
return false;
isl_union_map *Schedule = isl_ast_build_get_schedule(Build);
- isl_union_map *Deps = D->getDependences(
- Dependences::TYPE_RAW | Dependences::TYPE_WAW | Dependences::TYPE_WAR);
+ isl_union_map *Deps =
+ D->getDependences(Dependences::TYPE_RAW | Dependences::TYPE_WAW |
+ Dependences::TYPE_WAR)
+ .release();
if (!D->isParallel(Schedule, Deps)) {
isl_union_map *DepsAll =
D->getDependences(Dependences::TYPE_RAW | Dependences::TYPE_WAW |
- Dependences::TYPE_WAR | Dependences::TYPE_TC_RED);
+ Dependences::TYPE_WAR | Dependences::TYPE_TC_RED)
+ .release();
D->isParallel(Schedule, DepsAll, &NodeInfo->MinimalDependenceDistance);
isl_union_map_free(Schedule);
return false;
}
- isl_union_map *RedDeps = D->getDependences(Dependences::TYPE_TC_RED);
+ isl_union_map *RedDeps =
+ D->getDependences(Dependences::TYPE_TC_RED).release();
if (!D->isParallel(Schedule, RedDeps))
NodeInfo->IsReductionParallel = true;
OpenPOWER on IntegriCloud