summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/IslCodeGeneration.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2014-10-02 15:31:24 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2014-10-02 15:31:24 +0000
commitecdf263c070297ca24eeaf892cda8fa843a05889 (patch)
tree49b943a04b1f37a17e46cad299f8d09bc7ff308a /polly/lib/CodeGen/IslCodeGeneration.cpp
parentb41d46118ad13f2c398cf209aa1d17811f9885a6 (diff)
downloadbcm5719-llvm-ecdf263c070297ca24eeaf892cda8fa843a05889.tar.gz
bcm5719-llvm-ecdf263c070297ca24eeaf892cda8fa843a05889.zip
Allow to annotate alias scopes in the new SCoP.
The command line flag -polly-annotate-alias-scopes controls whether or not Polly annotates alias scopes in the new SCoP (default ON). This can improve later optimizations as the new SCoP is basically an alias free environment for them. llvm-svn: 218877
Diffstat (limited to 'polly/lib/CodeGen/IslCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/IslCodeGeneration.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/polly/lib/CodeGen/IslCodeGeneration.cpp b/polly/lib/CodeGen/IslCodeGeneration.cpp
index f5599ee3a25..68ed9434462 100644
--- a/polly/lib/CodeGen/IslCodeGeneration.cpp
+++ b/polly/lib/CodeGen/IslCodeGeneration.cpp
@@ -605,6 +605,10 @@ public:
assert(!S.getRegion().isTopLevelRegion() &&
"Top level regions are not supported");
+ // Build the alias scopes for annotations first.
+ if (PollyAnnotateAliasScopes)
+ Annotator.buildAliasScopes(S);
+
BasicBlock *EnteringBB = simplifyRegion(&S, this);
PollyIRBuilder Builder = createPollyIRBuilder(EnteringBB, Annotator);
OpenPOWER on IntegriCloud