Files
archived-llvm/test/CodeGen/Mips
Sanjay Patel 85745f9561 [DAG] optimize negation of bool
Use mask and negate for legalization of i1 source type with SIGN_EXTEND_INREG.
With the mask, this should be no worse than 2 shifts. The mask can be eliminated
in some cases, so that should be better than 2 shifts.

This change exposed some missing folds related to negation:
https://reviews.llvm.org/rL284239
https://reviews.llvm.org/rL284395

There may be others, so please let me know if you see any regressions.

Differential Revision: https://reviews.llvm.org/D25485


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284611 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-19 16:58:59 +00:00
..
2016-10-19 16:58:59 +00:00
2011-09-09 23:14:58 +00:00
2016-01-26 00:03:25 +00:00
2016-01-26 00:03:25 +00:00
2016-01-26 00:03:25 +00:00
2012-05-12 03:25:16 +00:00
2015-04-13 18:47:19 +00:00
2011-09-09 23:14:58 +00:00
2012-03-29 18:43:11 +00:00
2011-12-19 20:24:28 +00:00
2016-01-26 00:03:25 +00:00
2016-10-19 16:58:59 +00:00
2012-06-27 00:40:34 +00:00
2013-07-26 20:58:55 +00:00