This is done.

llvm-svn: 47688
This commit is contained in:
Evan Cheng 2008-02-27 20:26:32 +00:00
parent fdc732ab9a
commit 3d17e4c427
1 changed files with 0 additions and 24 deletions

View File

@ -1553,30 +1553,6 @@ abs:
//===---------------------------------------------------------------------===//
Consider:
#include <inttypes.h>
uint64_t a;
uint16_t b;
uint64_t mul(void) {
return a * b;
}
Currently, we generate the following:
mul:
movzwl b, %ecx
movl %ecx, %eax
mull a
imull a+4, %ecx
addl %edx, %ecx
movl %ecx, %edx
ret
llvm should be able to commute the addl so that the movl isn't necessary.
//===---------------------------------------------------------------------===//
Consider:
int test(unsigned long a, unsigned long b) { return -(a < b); }