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-12 18:29:23 +00:00
2009-11-18 21:33:35 +00:00
2009-11-26 00:35:01 +00:00
2010-01-03 18:10:58 +00:00
2010-01-02 00:22:15 +00:00
2009-11-07 06:19:20 +00:00
2009-11-11 07:11:02 +00:00
2009-11-11 07:11:02 +00:00
2009-11-11 07:11:02 +00:00
2009-11-11 07:11:02 +00:00
2010-01-12 04:52:47 +00:00
2010-01-05 17:55:26 +00:00
2009-11-30 02:42:27 +00:00
2009-12-16 00:53:11 +00:00
2009-12-09 22:24:42 +00:00
2009-12-02 22:02:20 +00:00
2010-01-04 21:23:34 +00:00
2010-01-18 21:38:44 +00:00
2009-12-15 03:00:32 +00:00