1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 22:12:57 +02:00
llvm-mirror/test/CodeGen
Evan Cheng 5cf9d23e4e Canonicalize -1 - x to ~x.
Instcombine does this but apparently there are situations where this pattern will escape the optimizer and / or created by isel. Here is a case that's seen in JavaScriptCore:
  %t1 = sub i32 0, %a
  %t2 = add i32 %t1, -1
The dag combiner pattern: ((c1-A)+c2) -> (c1+c2)-A
will fold it to -1 - %a.

llvm-svn: 93773
2010-01-18 21:38:44 +00:00
..
Alpha Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
ARM The Neon "vtst" instruction takes a suffix that is the element size alone -- 2010-01-17 06:35:17 +00:00
Blackfin Teach dag combine to fold the following transformation more aggressively: 2010-01-06 19:38:29 +00:00
CBackend
CellSPU Teach dag combine to fold the following transformation more aggressively: 2010-01-06 19:38:29 +00:00
CPP
Generic APInt'fy TargetLowering::SimplifySetCC to fix PR5963. 2010-01-07 20:58:44 +00:00
Mips Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
MSP430 Reenable tests 2010-01-15 21:19:26 +00:00
PIC16 Extern declaration for unordered.f32 libcall was not being emitted. Fixed that. 2009-12-29 03:24:34 +00:00
PowerPC remove uses of deprecated functions, this generates slightly 2010-01-13 07:30:49 +00:00
SPARC Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
SystemZ Teach dag combine to fold the following transformation more aggressively: 2010-01-06 19:38:29 +00:00
Thumb Run the pre-register allocation tail duplication pass by default. Remove 2010-01-16 00:29:50 +00:00
Thumb2 Run the pre-register allocation tail duplication pass by default. Remove 2010-01-16 00:29:50 +00:00
X86 Canonicalize -1 - x to ~x. 2010-01-18 21:38:44 +00:00
XCore Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00