Files
llvm-6502/test/CodeGen/X86
Evan Cheng 56f582d664 For x86, canonicalize max
(x > y) ? x : y
=>
(x >= y) ? x : y

So for something like
(x - y) > 0 : (x - y) ? 0
It will be
(x - y) >= 0 : (x - y) ? 0

This makes is possible to test sign-bit and eliminate a comparison against
zero. e.g.
subl   %esi, %edi
testl  %edi, %edi
movl   $0, %eax
cmovgl %edi, %eax
=>
xorl   %eax, %eax
subl   %esi, $edi
cmovsl %eax, %edi

rdar://10633221


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147512 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-04 01:41:39 +00:00
..
2011-10-22 12:39:25 +00:00
2011-10-30 13:24:22 +00:00
2011-11-23 04:03:08 +00:00
2011-09-30 23:40:29 +00:00
2011-09-30 23:21:11 +00:00
2011-08-09 03:04:23 +00:00
2011-08-19 04:30:24 +00:00
2011-08-27 04:53:41 +00:00
2011-11-15 07:13:03 +00:00
2012-01-04 01:41:39 +00:00
2011-11-08 00:09:27 +00:00
2011-08-31 21:41:20 +00:00
2011-11-12 20:35:26 +00:00
2011-11-22 06:36:25 +00:00
2011-12-08 19:21:39 +00:00
2011-10-16 20:43:41 +00:00
2011-11-15 07:13:03 +00:00
2011-11-07 23:10:43 +00:00
2011-11-08 00:03:24 +00:00
2011-11-07 19:15:58 +00:00
2011-10-10 23:18:02 +00:00
2011-11-16 03:03:52 +00:00
2011-11-07 19:15:58 +00:00