commit | 6a15b1928a011852116e4415ed43432e2c979a51 | [log] [tgz] |
---|---|---|
author | Roman Lebedev <lebedev.ri@gmail.com> | Mon May 21 21:41:10 2018 +0000 |
committer | Roman Lebedev <lebedev.ri@gmail.com> | Mon May 21 21:41:10 2018 +0000 |
tree | fe5444528a8514fea6b1cf2b9e39f6095f8e82e3 | |
parent | 9ed66ee093d689bd7e62cdd659b59a7fe96c22a7 [diff] |
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332905 91177308-0d34-0410-b5e6-96231b3b80d8