Two bug fixes:
authorChris Lattner <sabre@nondot.org>
Sat, 11 Dec 2004 06:05:53 +0000 (06:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Dec 2004 06:05:53 +0000 (06:05 +0000)
commitdade2d22babb0877fcbfd13fecd3742991bebed9
tree2fb20bfc09d4653fb1f97bf1d5d30cc5eed70109
parent864737bf9e208566bbecb81dda9cce5245fa2bcf
Two bug fixes:
 1. Actually increment the Statistic for the GV elim optzn
 2. When resolving undef branches, only resolve branches in executable blocks,
    avoiding marking a bunch of completely dead blocks live.  This has a big
    impact on the quality of the generated code.

With this patch, we positively rip up vortex, compiling Ut_MoveBytes to a
single memcpy call. In vortex we get this:

     12 ipsccp           - Number of globals found to be constant
    986 ipsccp           - Number of arguments constant propagated
   1378 ipsccp           - Number of basic blocks unreachable
   8919 ipsccp           - Number of instructions removed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18796 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp