diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-08 08:00:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-08 08:00:12 +0000 |
commit | c78b0b740bcf2e00a8871090709c3571fe442f07 (patch) | |
tree | 2bd6f926a577d036180a499552ea06d1eecf662a /lib/CodeGen/AsmPrinter.cpp | |
parent | 62c08dd4a1a1e8755ec6cc7cd458fa532c8b5c85 (diff) |
improve code insertion in two ways:
1. Only forward subst offsets into loads and stores, not into arbitrary
things, where it will likely become a load.
2. If the source is a cast from pointer, forward subst the cast as well,
allowing us to fold the cast away (improving cases when the cast is
from an alloca or global).
This hasn't been fully tested, but does appear to further reduce register
pressure and improve code. Lets let the testers grind on it a bit. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions