From: Jingyue Wu Date: Sun, 1 Feb 2015 02:33:02 +0000 (+0000) Subject: [SeparateConstOffsetFromGEP] set PreservesCFG flag X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8a8ff726ba295998f97a2bd740b2606baa8cf6da;p=oota-llvm.git [SeparateConstOffsetFromGEP] set PreservesCFG flag SeparateConstOffsetFromGEP does not change the shape of the control flow graph. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227704 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp b/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp index 34994d2f377..47ffd23fa43 100644 --- a/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp +++ b/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp @@ -314,6 +314,7 @@ class SeparateConstOffsetFromGEP : public FunctionPass { void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired(); AU.addRequired(); + AU.setPreservesCFG(); } bool doInitialization(Module &M) override {