fix two strange things in the default passmgr:
authorChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 20:41:59 +0000 (20:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 20:41:59 +0000 (20:41 +0000)
commitf51635cd30232ecfcbe1094ceaf85118abe0f0f6
treeea6f31872993f1c945ba4ca932631039e5005c51
parent213a8d3a481e0166d0397b09f0d7694cafee5af1
fix two strange things in the default passmgr:

1. we'd run simplifycfg at the very start, even though
the per function passes have already cleaned this up.

2. In the main per-function pipeline that is interlaced with inlining
   etc, we would do instcombine, jump threading, simplifycfg *before*
   doing SROA.  SROA is much more likely to expose opportunities for
   these passes than they are for SROA, so move SRoA up earlier.

also add some comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85742 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/StandardPasses.h