[RegisterPasses] Run polly-simplify also right after scop modeling
authorTobias Grosser <tobias@grosser.es>
Tue, 8 Aug 2017 15:14:46 +0000 (15:14 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 8 Aug 2017 15:14:46 +0000 (15:14 +0000)
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

polly/lib/Support/RegisterPasses.cpp

index 5152858..2ef412e 100644 (file)
@@ -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)