From e7c85a4c1d0c5692ba06494993ebeca562c1ed80 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 21 Jan 2011 08:38:09 +0000 Subject: [PATCH] SCCP doesn't actually preserve the CFG. It will delete and insert terminator instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123973 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/SCCP.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index b9340c70993..c82e929b364 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -1606,10 +1606,6 @@ namespace { // algorithm, and return true if the function was modified. // bool runOnFunction(Function &F); - - virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.setPreservesCFG(); - } }; } // end anonymous namespace -- 2.11.0