diff options
author | Richard Biener <rguenther@suse.de> | 2025-05-06 08:36:01 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-05-06 11:17:44 +0200 |
commit | 5e363ffefaceb9ff8fdeeead247c8337538e01db (patch) | |
tree | e2b82902fe559610114d1d895b26e62734a1ca68 /libjava/gnu/java/awt/java2d/PixelCoverage$Bucket.h | |
parent | 16e301adf7b653c72d5c3cae1c7287877f3f20ff (diff) | |
download | gcc-5e363ffefaceb9ff8fdeeead247c8337538e01db.zip gcc-5e363ffefaceb9ff8fdeeead247c8337538e01db.tar.gz gcc-5e363ffefaceb9ff8fdeeead247c8337538e01db.tar.bz2 |
tree-optimization/120031 - CTZ pattern matching fails a case
This PR is about the pattern matching in tree-ssa-forwprop.cc not
working for the fallback implementation in ZSTD which uses a cast
aroud the negation of the value to be tested. There's a pattern
eliding casts in (T')-(T)x already but that only covered an
inner widening conversion. The following extends this to other
conversions given the negation will then be carried out in an
unsigned type.
PR tree-optimization/120031
* match.pd ((nop_outer_cast)-(inner_cast)var -> -(outer_cast)(var)):
Allow inner conversions that are not widenings when the outer
type is unsigned.
* gcc.target/i386/pr120031.c: New testcase.
Diffstat (limited to 'libjava/gnu/java/awt/java2d/PixelCoverage$Bucket.h')
0 files changed, 0 insertions, 0 deletions