aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-06-16 08:55:12 +0200
committerRichard Biener <rguenther@suse.de>2023-06-16 10:26:14 +0200
commit827e208fa64771f15fc8e53970a2297e637277b5 (patch)
tree0b21eeff8d82466010cefc5269f280e4a71b1074 /libcpp
parent0f732ff7c4724e3317ce64feb757d5112c6e1f94 (diff)
downloadgcc-827e208fa64771f15fc8e53970a2297e637277b5.zip
gcc-827e208fa64771f15fc8e53970a2297e637277b5.tar.gz
gcc-827e208fa64771f15fc8e53970a2297e637277b5.tar.bz2
tree-optimization/110269 - restore missed condition folding
The following makes sure we optimize x != 0 using range info via tree_expr_nonzero_p via match.pd. PR tree-optimization/110269 * fold-const.cc (fold_binary_loc): Merge x != 0 folding with tree_expr_nonzero_p ... * match.pd (cmp (convert? addr@0) integer_zerop): With this pattern. * gcc.dg/tree-ssa/pr110269.c: New testcase.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions