This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/83444] [5/6/7/8 Regression] missing strlen optimization on a member array of a local struct
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Dec 2017 16:18:07 +0000
- Subject: [Bug tree-optimization/83444] [5/6/7/8 Regression] missing strlen optimization on a member array of a local struct
- Auto-submitted: auto-generated
- References: <bug-83444-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83444
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2017-12-18
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42904
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42904&action=edit
gcc8-pr83444.patch
The problem is we fold strlen (x) != 0 to *x != 0 early, and then don't handle
that during the strlen pass.