aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chrec.h
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gmail.com>2023-10-15 10:36:56 -0700
committerAndrew Pinski <pinskia@gmail.com>2023-10-16 10:11:13 -0700
commitc7609acb8a8210188d21b2cd72ecc6d3b2de2ab8 (patch)
treee6518a09c07f7b6f4507f0235c84beee3b3034f9 /gcc/tree-chrec.h
parent29a4453c7b8a86d242dab89b9e4d222749fd911e (diff)
downloadgcc-c7609acb8a8210188d21b2cd72ecc6d3b2de2ab8.zip
gcc-c7609acb8a8210188d21b2cd72ecc6d3b2de2ab8.tar.gz
gcc-c7609acb8a8210188d21b2cd72ecc6d3b2de2ab8.tar.bz2
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
This improves the `A CMP 0 ? A : -A` set of match patterns to use bitwise_equal_p which allows an nop cast between signed and unsigned. This allows catching a few extra cases which were not being caught before. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: PR tree-optimization/101541 * match.pd (A CMP 0 ? A : -A): Improve using bitwise_equal_p. gcc/testsuite/ChangeLog: PR tree-optimization/101541 * gcc.dg/tree-ssa/phi-opt-36.c: New test. * gcc.dg/tree-ssa/phi-opt-37.c: New test.
Diffstat (limited to 'gcc/tree-chrec.h')
0 files changed, 0 insertions, 0 deletions