From ecdf263c070297ca24eeaf892cda8fa843a05889 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Thu, 2 Oct 2014 15:31:24 +0000 Subject: 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 --- polly/lib/CodeGen/IslCodeGeneration.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'polly/lib/CodeGen/IslCodeGeneration.cpp') 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); -- cgit v1.2.3