[llvm-commits] [llvm] r123973 - /llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Nick Lewycky nicholas at mxc.ca
Fri Jan 21 00:38:09 PST 2011


Author: nicholas
Date: Fri Jan 21 02:38:09 2011
New Revision: 123973

URL: http://llvm.org/viewvc/llvm-project?rev=123973&view=rev
Log:
SCCP doesn't actually preserve the CFG. It will delete and insert terminator
instructions.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=123973&r1=123972&r2=123973&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Fri Jan 21 02:38:09 2011
@@ -1606,10 +1606,6 @@
     // algorithm, and return true if the function was modified.
     //
     bool runOnFunction(Function &F);
-
-    virtual void getAnalysisUsage(AnalysisUsage &AU) const {
-      AU.setPreservesCFG();
-    }
   };
 } // end anonymous namespace
 





More information about the llvm-commits mailing list