diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2023-08-16 21:52:18 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2023-08-16 22:43:05 -0500 |
commit | 00f03814611e47e1a459b4d287b0e847a34ab9d4 (patch) | |
tree | 688619aca48574bea826c0f8ce183e6cec71becb /clang/lib/Sema/SemaModule.cpp | |
parent | 82292d1ae5ac00e0257b008343d095c5037bd017 (diff) | |
download | llvm-00f03814611e47e1a459b4d287b0e847a34ab9d4.zip llvm-00f03814611e47e1a459b4d287b0e847a34ab9d4.tar.gz llvm-00f03814611e47e1a459b4d287b0e847a34ab9d4.tar.bz2 |
[InstCombine] Refactor foldSelectICmpAndOr to use `decomposeBitTestICmp` instead of bespoke logic
This is essentially NFC as the cases `decomposeBitTestICmp` covers
that weren't already covered explicitly, will be canonicalized into
the cases explicitly covered. As well the unsigned cases don't apply
as the `Mask` is not a power of 2.
That being said, using a well established helper is less bug prone and
if some canonicalization changes, will prevent regressions here.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D148744
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions