diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-15 06:10:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-15 06:10:49 +0000 |
commit | e6987587d62bb4de0f57e103f677f6bfb43a09f3 (patch) | |
tree | d8b6a0ddeabc34187f25860834ee0394257bd9d3 /lib/Target/CBackend/CBackend.cpp | |
parent | 6dc868581b20380802e6a011de8dd9766790cf7a (diff) |
enhance the load/store narrowing optimization to handle a
tokenfactor in between the load/store. This allows us to
optimize test7 into:
_test7: ## @test7
## BB#0: ## %entry
movl (%rdx), %eax
## kill: SIL<def> ESI<kill>
movb %sil, 5(%rdi)
ret
instead of:
_test7: ## @test7
## BB#0: ## %entry
movl 4(%esp), %ecx
movl $-65281, %eax ## imm = 0xFFFFFFFFFFFF00FF
andl 4(%ecx), %eax
movzbl 8(%esp), %edx
shll $8, %edx
addl %eax, %edx
movl 12(%esp), %eax
movl (%eax), %eax
movl %edx, 4(%ecx)
ret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
0 files changed, 0 insertions, 0 deletions