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-06-02 09:42:43 +00:00
2012-06-06 23:53:03 +00:00
2012-04-04 20:33:56 +00:00
2012-05-24 06:35:32 +00:00
2012-06-01 00:58:41 +00:00
2012-06-03 16:48:52 +00:00