diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-11-14 20:50:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-11-14 20:50:30 +0000 |
| commit | 28eeb73f2f44187237dc5dc46a345fdbf8e5663b (patch) | |
| tree | cb36ccfe737b787e8a6d48602af8866aef45321a /llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp | |
| parent | 78d31c13ffc182589e417843971722ae8746f77b (diff) | |
| download | bcm5719-llvm-28eeb73f2f44187237dc5dc46a345fdbf8e5663b.tar.gz bcm5719-llvm-28eeb73f2f44187237dc5dc46a345fdbf8e5663b.zip | |
If a global is just loaded and restored, realize that it is not changing
value. This allows us to turn more globals into constants and eliminate them.
This patch implements GlobalOpt/load-store-global.llx.
Note that this patch speeds up 255.vortex from:
Output/255.vortex.out-cbe.time:program 7.640000
Output/255.vortex.out-llc.time:program 9.810000
to:
Output/255.vortex.out-cbe.time:program 7.250000
Output/255.vortex.out-llc.time:program 9.490000
Which isn't bad at all!
llvm-svn: 17746
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions

