diff options
author | Richard Biener <rguenther@suse.de> | 2023-06-16 08:55:12 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-06-16 10:26:14 +0200 |
commit | 827e208fa64771f15fc8e53970a2297e637277b5 (patch) | |
tree | 0b21eeff8d82466010cefc5269f280e4a71b1074 /libcpp/include | |
parent | 0f732ff7c4724e3317ce64feb757d5112c6e1f94 (diff) | |
download | gcc-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/include')
0 files changed, 0 insertions, 0 deletions