Evan Cheng f863e3fb73 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

llvm-svn: 135017
2011-07-13 00:42:17 +00:00
..
2011-03-11 21:52:04 +00:00
2011-03-11 21:52:04 +00:00
2010-09-03 18:37:12 +00:00
2011-03-11 21:52:04 +00:00
2009-06-24 21:36:26 +00:00
2011-07-12 16:06:01 +00:00
2011-04-25 10:12:01 +00:00
2011-07-01 21:12:19 +00:00
2009-11-22 15:35:28 +00:00
2009-11-22 15:35:28 +00:00
2011-07-01 21:12:19 +00:00
2011-07-01 21:12:19 +00:00
2011-07-13 00:42:17 +00:00
2011-07-13 00:42:17 +00:00
2011-07-13 00:42:17 +00:00
2011-07-13 00:42:17 +00:00