[Bug tree-optimization/100519] ICE in insert_stmt_after, at tree-ssa-reassoc.c:1452

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 12 11:13:02 GMT 2021


--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:


commit r12-745-gcd36bbb2281ada10b5e1df143ecf64b88cdb8119
Author: Richard Biener <rguenther@suse.de>
Date:   Tue May 11 14:59:59 2021 +0200

    tree-optimization/100519 - avoid reassociating asm goto defs

    This splits can_associate_p into checks for SSA defs and checks
    for the type so it can be called from is_reassociable_op to
    catch cases not catched by the earlier fix.

    2021-05-11  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/100519
            * tree-ssa-reassoc.c (can_associate_p): Split into...
            (can_associate_op_p): ... this
            (can_associate_type_p): ... and this.
            (is_reassociable_op): Call can_associate_op_p.
            (break_up_subtract_bb): Call the appropriate predicates.
            (reassociate_bb): Likewise.

            * gcc.dg/torture/pr100519.c: New testcase.

More information about the Gcc-bugs mailing list