llvm-6502/test/CodeGen
Chad Rosier a73b6fc511 Add x86-specific DAG combine to simplify:
x == -y --> x+y == 0
 x != -y --> x+y != 0

On x86, the generated code goes from
   negl    %esi
   cmpl    %esi, %edi
   je    .LBB0_2
to
   addl    %esi, %edi
   je    .L4

This case is correctly handled for ARM with "cmn".

Patch by Manman Ren.
rdar://11245199
PR12545


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155739 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-27 22:33:25 +00:00
..
ARM Fix the order of the operands in the llvm.fma intrinsic patterns for ARM, 2012-04-27 18:51:24 +00:00
CellSPU
CPP
Generic
Hexagon Revert r155365, r155366, and r155367. All three of these have regression 2012-04-23 18:25:57 +00:00
MBlaze
Mips Do not use $gp as a dedicated global register if the target ABI is not O32. 2012-04-25 01:24:52 +00:00
MSP430
PowerPC
PTX
SPARC
Thumb Make test less fragile. 2012-04-27 20:48:18 +00:00
Thumb2 If triple is armv7 / thumbv7 and a CPU is specified, do not automatically assume 2012-04-26 01:13:36 +00:00
X86 Add x86-specific DAG combine to simplify: 2012-04-27 22:33:25 +00:00
XCore