diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-07-29 13:00:04 -0700 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-08-02 01:08:31 -0700 |
commit | 2bae476b511dc441bf61da8a49cca655575e7dd6 (patch) | |
tree | c37a8ed4935f666166f34367eb7eeb0d5ecbdc23 /gcc/analyzer/analyzer-language.cc | |
parent | 7ff1d1b156cc78034e299757629de33e110a30b1 (diff) | |
download | gcc-2bae476b511dc441bf61da8a49cca655575e7dd6.zip gcc-2bae476b511dc441bf61da8a49cca655575e7dd6.tar.gz gcc-2bae476b511dc441bf61da8a49cca655575e7dd6.tar.bz2 |
Move `~X & X` and `~X | X` over to use bitwise_inverted_equal_p
This is a simple patch to move these 2 patterns over to use
bitwise_inverted_equal_p. It also allows us to remove 2 other patterns
which were used on comparisons as they are now handled by
the original pattern.
OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.
gcc/ChangeLog:
* match.pd (`~X & X`, `~X | X`): Move over to
use bitwise_inverted_equal_p, removing :c as bitwise_inverted_equal_p
handles that already.
Remove range test simplifications to true/false as they
are now handled by these patterns.
Diffstat (limited to 'gcc/analyzer/analyzer-language.cc')
0 files changed, 0 insertions, 0 deletions