diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2020-12-23 22:26:39 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2020-12-23 22:28:09 +0300 |
commit | a0ddc61c5b95be2585b6b4981cf8634d7a00e4a6 (patch) | |
tree | d916717bec3602a51208043e13b2dc87b1036ffa /clang/lib/Basic/Module.cpp | |
parent | cb2e5980bae3bead524895f4f36e4f71cd764a1b (diff) | |
download | llvm-a0ddc61c5b95be2585b6b4981cf8634d7a00e4a6.zip llvm-a0ddc61c5b95be2585b6b4981cf8634d7a00e4a6.tar.gz llvm-a0ddc61c5b95be2585b6b4981cf8634d7a00e4a6.tar.bz2 |
[LoopIdiom] 'left-shift until bittest' idiom: support canonical sign bit mask
If the bitmask is for sign bit, instcombine would have canonicalized
the pattern into a proper sign bit check. Supporting that is still
simple, but requires a bit of a roundtrip - we first have to use
`decomposeBitTestICmp()`, and the rest again just works.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D91726
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions