[llvm-commits] [llvm] r123973 - /llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Chris Lattner
clattner at apple.com
Fri Jan 21 09:03:02 PST 2011
On Jan 21, 2011, at 12:38 AM, Nick Lewycky wrote:
> 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.
Does this change the output of "opt -O3 -debug-pass=Structure" on some bc file? Do any extra analyses get run?
-Chris
>
> 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
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list