diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-12 18:08:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-12 18:08:53 +0000 |
commit | 9bbd992eb182c03403f6828c1e2bf7c60cd98d2d (patch) | |
tree | 92626e5af33f39ef5d881630751bccbbd94384aa /lib/CodeGen | |
parent | 3bfbf4ea990930d153e58e153f319408341a94fe (diff) |
Try both ways to fold an add together. This allows us to generate this code
imul %EAX, %EAX, 400
add %ECX, %EAX
add %ESI, DWORD PTR [%ECX + 4*%EDX]
inc %EDX
cmp %EDX, 100
instead of this:
imul %EAX, %EAX, 400
add %ECX, %EAX
mov %EAX, %EDX
shl %EAX, 2
add %ECX, %EAX
add %ESI, DWORD PTR [%ECX]
inc %EDX
cmp %EDX, 100
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
0 files changed, 0 insertions, 0 deletions