summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/IslCodeGeneration.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2014-10-01 20:10:44 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2014-10-01 20:10:44 +0000
commitc7b719fc032ec29af7fa0181292fb6b08854d74d (patch)
tree44a56791f7bc6caaad142dedcfc5ad1b9d69720c /polly/lib/CodeGen/IslCodeGeneration.cpp
parente3c513a965427d15f80c5abe94f2288d1aa9aa78 (diff)
downloadbcm5719-llvm-c7b719fc032ec29af7fa0181292fb6b08854d74d.tar.gz
bcm5719-llvm-c7b719fc032ec29af7fa0181292fb6b08854d74d.zip
Annotate LLVM-IR for all parallel loops
This change allows to annotate all parallel loops with loop id metadata. Furthermore, it will annotate memory instructions with llvm.mem.parallel_loop_access metadata for all surrounding parallel loops. This is especially usefull if an external paralleliser is used. This also removes the PollyLoopInfo class and comments the LoopAnnotator. A test case for multiple parallel loops is attached. llvm-svn: 218793
Diffstat (limited to 'polly/lib/CodeGen/IslCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/IslCodeGeneration.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/CodeGen/IslCodeGeneration.cpp b/polly/lib/CodeGen/IslCodeGeneration.cpp
index 22a8fe51abf..f5599ee3a25 100644
--- a/polly/lib/CodeGen/IslCodeGeneration.cpp
+++ b/polly/lib/CodeGen/IslCodeGeneration.cpp
@@ -319,8 +319,8 @@ void IslNodeBuilder::createForSequential(__isl_take isl_ast_node *For) {
CmpInst::Predicate Predicate;
bool Parallel;
- Parallel = IslAstInfo::isInnermostParallel(For) &&
- !IslAstInfo::isReductionParallel(For);
+ Parallel =
+ IslAstInfo::isParallel(For) && !IslAstInfo::isReductionParallel(For);
Body = isl_ast_node_for_get_body(For);
@@ -362,7 +362,7 @@ void IslNodeBuilder::createForSequential(__isl_take isl_ast_node *For) {
create(Body);
- Annotator.End();
+ Annotator.popLoop(Parallel);
IDToValue.erase(IteratorID);
OpenPOWER on IntegriCloud