diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-13 05:53:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-13 05:53:31 +0000 |
| commit | 99cc1337100fa632f2e74ec353f650c8ae3ff1a3 (patch) | |
| tree | dd0becaaca6df67c81e0a5d0c3ac30fdf819c819 /llvm/lib/CodeGen/VirtRegMap.h | |
| parent | 4be6df5d86ef8879687f45044a3f45e39e9c1997 (diff) | |
| download | bcm5719-llvm-99cc1337100fa632f2e74ec353f650c8ae3ff1a3.tar.gz bcm5719-llvm-99cc1337100fa632f2e74ec353f650c8ae3ff1a3.zip | |
generalize the previous code to use the full generality of LEA
for i32/i64 expressions (we could also do i16 on cpus where
i16 lea is fast, but I didn't add this). On the example, we now
generate:
_test:
movl 4(%esp), %eax
cmpl $42, (%eax)
setl %al
movzbl %al, %eax
leal 4(%eax,%eax,8), %eax
ret
instead of:
_test:
movl 4(%esp), %eax
cmpl $41, (%eax)
movl $4, %ecx
movl $13, %eax
cmovg %ecx, %eax
ret
llvm-svn: 66869
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.h')
0 files changed, 0 insertions, 0 deletions

