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

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

https://gcc.gnu.org/g:e1a5e7562d53a8d2256f754714b06595bea72196

commit r12-8020-ge1a5e7562d53a8d2256f754714b06595bea72196
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Apr 6 11:43:01 2022 +0200

    tree-optimization/105173 - fix insertion logic in reassoc

    The find_insert_point logic around deciding whether to insert
    before or after the found insertion point does not handle
    the case of _12 = ..;, _12, 1.0 well.  The following puts the
    logic into find_insert_point itself instead.

    2022-04-06  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/105173
            * tree-ssa-reassoc.cc (find_insert_point): Get extra
            insert_before output argument and compute it.
            (insert_stmt_before_use): Adjust.
            (rewrite_expr_tree): Likewise.

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

Reply via email to