diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-05-21 21:41:10 +0000 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-05-21 21:41:10 +0000 |
| commit | 9f65d16d5d06bbfc075cdd9c8635f5af88baaf8b (patch) | |
| tree | 2202debcdd70e71ae4d06e6cf159c4c8c4b6c05a /llvm/utils/TableGen | |
| parent | 7772de25d07c977e41f8faa3bbf327033cd81c20 (diff) | |
| download | bcm5719-llvm-9f65d16d5d06bbfc075cdd9c8635f5af88baaf8b.tar.gz bcm5719-llvm-9f65d16d5d06bbfc075cdd9c8635f5af88baaf8b.zip | |
[DAGCombiner] isAllOnesConstantOrAllOnesSplatConstant(): look through bitcasts
Summary:
As pointed out in D46528, we errneously transform cases like `xor X, -1`,
even though we use said function.
It's because the `-1` is actually a bitcast there.
So i think we can just look through it in the function.
Differential Revision: https://reviews.llvm.org/D47156
llvm-svn: 332905
Diffstat (limited to 'llvm/utils/TableGen')
0 files changed, 0 insertions, 0 deletions

