Christopher Lamb
7a0678cae6
Fold subtracts into integer compares vs. zero. This improves generate code for this case on X86
from
_foo:
movl $99, %ecx
movl 4(%esp), %eax
subl %eax, %ecx
xorl %edx, %edx
testl %ecx, %ecx
cmovs %edx, %eax
ret
to
_foo:
xorl %ecx, %ecx
movl 4(%esp), %eax
cmpl $99, %eax
cmovg %ecx, %eax
ret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45173 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-18 21:32:20 +00:00
..
2007-12-01 07:51:45 +00:00
2007-05-06 13:37:16 +00:00
2007-12-13 07:50:36 +00:00
2007-08-02 04:47:05 +00:00
2007-05-06 13:37:16 +00:00
2007-11-19 15:30:20 +00:00
2007-12-17 17:39:51 +00:00
2007-12-01 07:51:45 +00:00
2007-06-07 18:45:06 +00:00
2007-12-08 01:37:09 +00:00
2007-09-24 15:48:49 +00:00
2007-10-22 18:31:58 +00:00
2007-12-18 21:32:20 +00:00
2007-12-01 07:51:45 +00:00
2007-12-03 19:17:21 +00:00
2007-11-27 03:43:35 +00:00
2007-11-17 02:48:01 +00:00
2007-11-27 03:43:35 +00:00
2007-12-17 17:40:29 +00:00
2007-12-17 01:12:55 +00:00
2007-11-04 16:15:04 +00:00
2005-10-24 02:26:13 +00:00
2007-11-01 20:53:16 +00:00
2007-05-06 13:37:16 +00:00
2007-10-21 23:05:16 +00:00
2007-11-06 20:39:11 +00:00
2007-10-03 19:26:29 +00:00
2007-12-18 09:59:50 +00:00
2007-11-04 06:37:55 +00:00
2007-09-10 20:58:55 +00:00