diff options
author | Martin Sebor <msebor@redhat.com> | 2019-10-16 17:18:57 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-10-16 11:18:57 -0600 |
commit | 27c14dbc6b01d5b7238d9d6893bcddce19b7056c (patch) | |
tree | 91e41b4bdffd010279c5b4036678d1c8f93a21da /gcc/tree-ssa-ifcombine.c | |
parent | b7bfd3c503b063ad9bbcb975816423e82cf48636 (diff) | |
download | gcc-27c14dbc6b01d5b7238d9d6893bcddce19b7056c.zip gcc-27c14dbc6b01d5b7238d9d6893bcddce19b7056c.tar.gz gcc-27c14dbc6b01d5b7238d9d6893bcddce19b7056c.tar.bz2 |
PR tree-optimization/91996 - fold non-constant strlen relational expressions
gcc/testsuite/ChangeLog:
PR tree-optimization/91996
* gcc.dg/strlenopt-80.c: New test.
* gcc.dg/strlenopt-81.c: New test.
gcc/ChangeLog:
PR tree-optimization/91996
* tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
information.
(compare_nonzero_chars): Add an overload.
(count_nonzero_bytes): Add an argument. Call overload above.
Handle non-constant lengths in some range.
(handle_store): Add an argument.
(check_and_optimize_stmt): Pass an argument to handle_store.
From-SVN: r277076
Diffstat (limited to 'gcc/tree-ssa-ifcombine.c')
0 files changed, 0 insertions, 0 deletions