commit | 47c99e0a969a382c99b6d9fe04666aea06eb24b7 | [log] [tgz] |
---|---|---|
author | Roman Lebedev <lebedev.ri@gmail.com> | Wed Sep 19 13:35:40 2018 +0000 |
committer | Roman Lebedev <lebedev.ri@gmail.com> | Wed Sep 19 13:35:40 2018 +0000 |
tree | 8c7540dc5d9d7404a11fde830e4430e58d82e5b8 | |
parent | 74e3c34a76f6b7c86ad28db29ffbbf254955b597 [diff] |
[InstCombine] foldICmpWithLowBitMaskedVal(): handle uncanonical ((1 << y)+(-1)) mask Summary: Same as to D52146. `((1 << y)+(-1))` is simply non-canoniacal version of `~(-1 << y)`: https://rise4fun.com/Alive/0vl We can not canonicalize it due to the extra uses. But we can handle it here. Reviewers: spatel, craig.topper, RKSimon Reviewed By: spatel Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D52147 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342547 91177308-0d34-0410-b5e6-96231b3b80d8