[SeparateConstOffsetFromGEP] set PreservesCFG flag
authorJingyue Wu <jingyue@google.com>
Sun, 1 Feb 2015 02:33:02 +0000 (02:33 +0000)
committerJingyue Wu <jingyue@google.com>
Sun, 1 Feb 2015 02:33:02 +0000 (02:33 +0000)
SeparateConstOffsetFromGEP does not change the shape of the control flow graph.

llvm-svn: 227704

llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp

index 34994d2..47ffd23 100644 (file)
@@ -314,6 +314,7 @@ class SeparateConstOffsetFromGEP : public FunctionPass {
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.addRequired<DataLayoutPass>();
     AU.addRequired<TargetTransformInfoWrapperPass>();
+    AU.setPreservesCFG();
   }
 
   bool doInitialization(Module &M) override {