commit | 85745f9561b7f54e75d40b8e35245c4b9e6ecd65 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Wed Oct 19 16:58:59 2016 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Wed Oct 19 16:58:59 2016 +0000 |
tree | 17f325342764c9f3ce710f189b2c09076b4299dd | |
parent | 8b3f7e86b154f57cfd2209d9b0c66da36070df2e [diff] |
[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