Manman Ren 91c5346d91 X86: replace SUB with CMP if possible
This patch will optimize the following
        movq    %rdi, %rax
        subq    %rsi, %rax
        cmovsq  %rsi, %rdi
        movq    %rdi, %rax
to
        cmpq    %rsi, %rdi
        cmovsq  %rsi, %rdi
        movq    %rdi, %rax

Perform this optimization if the actual result of SUB is not used.

rdar: 11540023


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157755 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-31 17:20:29 +00:00
..
2012-05-19 23:34:59 +00:00
2012-01-27 02:31:29 +00:00
2012-02-02 19:00:49 +00:00
2012-03-20 17:20:46 +00:00
2012-02-02 19:00:49 +00:00
2012-05-31 09:20:20 +00:00
2012-05-24 22:08:29 +00:00
2012-05-14 21:10:25 +00:00
2012-05-07 18:06:23 +00:00
2012-04-20 23:36:09 +00:00
2012-01-19 01:13:47 +00:00
2012-05-11 10:19:54 +00:00
2012-03-30 00:26:54 +00:00