Manman Ren 87253c2ebd 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@158126 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-07 00:42:47 +00:00
..
2012-05-19 23:34:59 +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-06-01 05:00:54 +00:00
2012-05-11 10:19:54 +00:00
2012-03-30 00:26:54 +00:00