Implement SRA for global variables. This allows the other global variable
authorChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 17:32:09 +0000 (17:32 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 17:32:09 +0000 (17:32 +0000)
commit670c889ac90e79fc6b1f9f18e78e536562d86f87
tree3aebdcfeecdcf2d8f05b4d08150b03d3aee2b829
parentbb99fc42e3f7385dade07867ba1c1174f6d75453
Implement SRA for global variables.  This allows the other global variable
optimizations to trigger much more often.  This allows the elimination of
several dozen more global variables in Programs/External.  Note that we only
do this for non-constant globals: constant globals will already be optimized
out if the accesses to them permit it.

This implements Transforms/GlobalOpt/globalsra.llx

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