commit | f64ea9d1221f52c47fed2ea86a74946c05f224ad | [log] [tgz] |
---|---|---|
author | Alkis Evlogimenos <alkis@evlogimenos.com> | Thu Feb 10 18:36:30 2005 +0000 |
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | Thu Feb 10 18:36:30 2005 +0000 |
tree | fe2f49ec0132d1556844987307f8ed98c6a432a8 | |
parent | db40cf1b5806812b5f9a79a0ce4fb154b3e10752 [diff] |
Localize globals if they are only used in main(). This replaces the global with an alloca, which eventually gets promoted into a register. This enables a lot of other optimizations later on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20109 91177308-0d34-0410-b5e6-96231b3b80d8