aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.cc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2023-07-29 21:52:31 -0700
committerAndrew Pinski <apinski@marvell.com>2023-07-31 10:12:07 -0700
commitac0e0966ebf08c454d53042a649403e2880ccbc1 (patch)
tree501cade81f7ba2186f27213341658a42af0a8498 /gcc/c/c-decl.cc
parent0258b73680e21fd96290af961c80966ac6b3cc68 (diff)
downloadgcc-ac0e0966ebf08c454d53042a649403e2880ccbc1.zip
gcc-ac0e0966ebf08c454d53042a649403e2880ccbc1.tar.gz
gcc-ac0e0966ebf08c454d53042a649403e2880ccbc1.tar.bz2
MATCH: Add `a == b | a cmp b` and `a != b & a cmp b` simplifications
Even though these are done by combine_comparisons, we can add them to match to allow simplifcations during match rather than just during reassoc/ifcombine. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: PR tree-optimization/106164 * match.pd (`a != b & a <= b`, `a != b & a >= b`, `a == b | a < b`, `a == b | a > b`): Handle these cases too. gcc/testsuite/ChangeLog: PR tree-optimization/106164 * gcc.dg/tree-ssa/cmpbit-2.c: New test.
Diffstat (limited to 'gcc/c/c-decl.cc')
0 files changed, 0 insertions, 0 deletions