[Bug tree-optimization/96370] [8/9/10 Regression] ICE with -ffast-math since r7-950-g8a85cee26eabf5cf

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 11 12:12:12 GMT 2020


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

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

https://gcc.gnu.org/g:819fc71b49af8366e6b23d2b57ebb6fb66f1a292

commit r10-8748-g819fc71b49af8366e6b23d2b57ebb6fb66f1a292
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Jul 30 10:24:42 2020 +0200

    tree-optimization/96370 - make reassoc expr rewrite more robust

    In the face of the more complex tricks in reassoc with respect
    to negate processing it can happen that the expression rewrite
    is fooled to recurse on a leaf and pick up a bogus expression
    code.  The following patch makes the expression rewrite more
    robust in providing the expression code to it directly since
    it is the same for all operations in a chain.

    2020-07-30  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/96370
            * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation
            code parameter and use it instead of picking it up from
            the stmt that is being rewritten.
            (reassociate_bb): Pass down the operation code.

            * gcc.dg/pr96370.c: New testcase.

    (cherry picked from commit 2c558d2655cb22f472c83e8296b5cd2a92365cd3)


More information about the Gcc-bugs mailing list