llvm-6502/test/CodeGen
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
..
ARM Revert commit r157966 2012-06-05 00:47:21 +00:00
CellSPU
CPP
Generic Add an insertPass API to TargetPassConfig. <rdar://problem/11498613> 2012-05-30 00:17:12 +00:00
Hexagon
MBlaze
Mips Add a test case for mips64 unaligned load/store instructions. 2012-06-04 17:57:06 +00:00
MSP430 These tests used intrinsics with the wrong prototype. They weren't caught because 2012-05-27 19:35:41 +00:00
NVPTX Add llvm.fabs intrinsic. 2012-05-28 21:48:37 +00:00
PowerPC Implement local-exec TLS on PowerPC. 2012-06-04 17:36:38 +00:00
SPARC
Thumb
Thumb2 Add a test case for global live range splitting. 2012-05-23 23:42:23 +00:00
X86 X86: replace SUB with CMP if possible 2012-06-07 00:42:47 +00:00
XCore