[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug tree-optimization/97260] [9/10/11 regression] memcmp of constant string and local constant arra
From:       "msebor at gcc dot gnu.org via Gcc-bugs" <gcc-bugs () gcc ! gnu ! org>
Date:       2020-09-30 23:40:31
Message-ID: bug-97260-4-jqztDVPxMi () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97260

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisection points to r200211 as the first commit after which the call wasn't
folded:

commit 6a6dac5293ee21d9aed0d394a0cb23948bb1efad
Author: Jan Hubicka <jh@suse.cz>
Date:   Wed Jun 19 20:06:12 2013 +0200

    cgraph.h (const_value_known_p): Replace by ...


            * cgraph.h (const_value_known_p): Replace by ...
            (ctor_for_folding): .. this one.
            * cgraphunit.c (process_function_and_variable_attributes): Use it.
            * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
            * expr.c (expand_expr_real_1): Likewise.
            (string_constant): Likewise.
            * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
            * ipa.c (process_references): Likewise.
            (symtab_remove_unreachable_nodes): Likewise.
            * ipa-inline-analysis.c (param_change_prob): Likewise.
            * gimple-fold.c (canonicalize_constructor_val): Likewise.
            (get_base_constructor): Likwise.
            * varpool.c (varpool_remove_node): Likewise.
            (varpool_remove_initializer): LIkewise.
            (dump_varpool_node): LIkwise.
            (const_value_known_p): Rewrite to ...
            (ctor_for_folding): ... this one.

            * lto-partition.c (add_references_to_partition): Use
            ctor_for_folding.

            * gcc.dg/tree-ssa/attr-alias-2.c: New testcase.

    From-SVN: r200211=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic