Run interprocedural const prop before global optimizer
authorGerolf Hoflehner <ghoflehner@apple.com>
Thu, 3 Jul 2014 19:28:15 +0000 (19:28 +0000)
committerGerolf Hoflehner <ghoflehner@apple.com>
Thu, 3 Jul 2014 19:28:15 +0000 (19:28 +0000)
commitdfb53d227bb53e78abdd2c519f5edfed54d6b701
tree4c87a7d04a7533ae34dcc2bf1f630fd742bd7856
parentc029b2b785e2735f184042ed3f79fa9e558ef7b8
Run interprocedural const prop before global optimizer

Exposes more constant globals that can be removed by
the global optimizer. A specific example is the removal
of the static global block address array in
clang/test/CodeGen/indirect-goto.c. This change impacts only
lower optimization levels. With LTO interprocedural
const prop runs already before global opt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212284 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PassManagerBuilder.cpp