Files
llvm-6502/lib/CodeGen/SelectionDAG
Evan Cheng 1ad0e8b576 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93773 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-18 21:38:44 +00:00
..
2010-01-05 01:24:50 +00:00
2010-01-18 21:38:44 +00:00
2009-11-16 20:35:59 +00:00
2010-01-05 01:25:04 +00:00
2009-12-28 01:00:12 +00:00
2009-06-24 05:29:56 +00:00
2010-01-05 01:25:09 +00:00
2010-01-05 01:24:43 +00:00
2010-01-01 23:37:34 +00:00