Evan Cheng e721f5c8d3 Improve codegen for select's:
if (x != 0) x = 1
if (x == 1) x = 1

Previous codegen looks like this:
        mov     r1, r0
        cmp     r1, #1
        mov     r0, #0
        moveq   r0, #1

The naive lowering select between two different values. It should recognize the
test is equality test so it's more a conditional move rather than a select:
        cmp     r0, #1
        movne   r0, #0

rdar://9758317


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135017 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-13 00:42:17 +00:00
..
2011-06-22 00:03:42 +00:00
2011-04-21 20:16:43 +00:00
2011-03-14 21:05:21 +00:00
2011-03-23 23:34:19 +00:00
2011-07-13 00:42:17 +00:00
2011-03-15 01:49:08 +00:00
2011-04-01 03:36:33 +00:00
2011-03-15 20:47:26 +00:00
2011-06-16 01:24:24 +00:00