diff options
author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-05-31 09:41:04 +0000 |
---|---|---|
committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-05-31 09:41:04 +0000 |
commit | 99191c78c25dea9b0dd436137ef1d2a8b6967294 (patch) | |
tree | 4fd2a68952a26b8fa68fa8bb881c6ded5167ef92 /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | 11e9bd24503b4a8c8ecd72a0e83cb4016fe3f34f (diff) | |
download | bcm5719-llvm-99191c78c25dea9b0dd436137ef1d2a8b6967294.tar.gz bcm5719-llvm-99191c78c25dea9b0dd436137ef1d2a8b6967294.zip |
Decouple SCoP building logic from pass
Created a new pass ScopInfoRegionPass. As name suggests, it is a
region pass and it is there to preserve compatibility with our
existing Polly passes. ScopInfoRegionPass will return a SCoP object
for a valid region while the creation of the SCoP stays in the
ScopInfo class.
Contributed-by: Utpal Bora <cs14mtech11017@iith.ac.in>
Reviewed-by: Tobias Grosser <tobias@grosser.es>,
Johannes Doerfert <doerfert@cs.uni-saarland.de>
Differential Revision: http://reviews.llvm.org/D20770
llvm-svn: 271259
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 4eb1122f214..49d240dea44 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -227,7 +227,7 @@ public: AU.addRequired<RegionInfoPass>(); AU.addRequired<ScalarEvolutionWrapperPass>(); AU.addRequired<ScopDetection>(); - AU.addRequired<ScopInfo>(); + AU.addRequired<ScopInfoRegionPass>(); AU.addRequired<LoopInfoWrapperPass>(); AU.addPreserved<DependenceInfo>(); @@ -246,7 +246,7 @@ public: // FIXME: We do not yet add regions for the newly generated code to the // region tree. AU.addPreserved<RegionInfoPass>(); - AU.addPreserved<ScopInfo>(); + AU.addPreserved<ScopInfoRegionPass>(); } }; } |