From: Tobias Grosser Date: Tue, 8 Aug 2017 15:14:46 +0000 (+0000) Subject: [RegisterPasses] Run polly-simplify also right after scop modeling X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79d9c2931051fc6152d46a7cc42d50383cdd832f;p=platform%2Fupstream%2Fllvm.git [RegisterPasses] Run polly-simplify also right after scop modeling This allows us to get rid of stores that are overwritten within the very same basic block, without ever being read beforehand. This simplification is necessary for delicm to run on pb4's correlation. llvm-svn: 310369 --- diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index 5152858..2ef412e 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -323,6 +323,8 @@ void registerPollyPasses(llvm::legacy::PassManagerBase &PM) { if (EnablePolyhedralInfo) PM.add(polly::createPolyhedralInfoPass()); + if (EnableSimplify) + PM.add(polly::createSimplifyPass()); if (EnableForwardOpTree) PM.add(polly::createForwardOpTreePass()); if (EnableDeLICM)