diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-01-26 19:45:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-01-26 19:45:50 +0000 |
| commit | e30e33af4ff2f939d1fb5e0871fa57c9e91cfe12 (patch) | |
| tree | 4ad8bb79d0c72d42e20e6b33292c38ca60e57437 /llvm/lib/CodeGen/OcamlCollector.cpp | |
| parent | 364963d41c89356667d31fedad8509ab8591818d (diff) | |
| download | bcm5719-llvm-e30e33af4ff2f939d1fb5e0871fa57c9e91cfe12.tar.gz bcm5719-llvm-e30e33af4ff2f939d1fb5e0871fa57c9e91cfe12.zip | |
Infer alignment of loads and increase their alignment when we can tell they are
from the stack. This allows us to compile stack-align.ll to:
_test:
movsd LCPI1_0, %xmm0
movapd %xmm0, %xmm1
*** andpd 4(%esp), %xmm1
andpd _G, %xmm0
addsd %xmm1, %xmm0
movl 20(%esp), %eax
movsd %xmm0, (%eax)
ret
instead of:
_test:
movsd LCPI1_0, %xmm0
** movsd 4(%esp), %xmm1
** andpd %xmm0, %xmm1
andpd _G, %xmm0
addsd %xmm1, %xmm0
movl 20(%esp), %eax
movsd %xmm0, (%eax)
ret
llvm-svn: 46401
Diffstat (limited to 'llvm/lib/CodeGen/OcamlCollector.cpp')
0 files changed, 0 insertions, 0 deletions

