OSDN Git Service

We preserve the CFG and some of the analysis passes.
authorNadav Rotem <nrotem@apple.com>
Sat, 29 Jun 2013 05:38:15 +0000 (05:38 +0000)
committerNadav Rotem <nrotem@apple.com>
Sat, 29 Jun 2013 05:38:15 +0000 (05:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185251 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index d609302..8655ff0 100644 (file)
@@ -1525,6 +1525,9 @@ struct SLPVectorizer : public FunctionPass {
     AU.addRequired<TargetTransformInfo>();
     AU.addRequired<LoopInfo>();
     AU.addRequired<DominatorTree>();
+    AU.addPreserved<LoopInfo>();
+    AU.addPreserved<DominatorTree>();
+    AU.setPreservesCFG();
   }
 
 private: