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)
commit65b13324e1f2b21c69c023996df36a6d21f5f8d3
treea9eba2323a529ffaed86578eb6abca913b19f7f7
parent99a664a84f95cfd7a1e636833599ce50fe08de02
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.

llvm-svn: 212284
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp