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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:7a596c323a9c6af5e8825d2d99892452da7a4e58

commit r12-9275-g7a596c323a9c6af5e8825d2d99892452da7a4e58
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Sat Feb 18 12:40:49 2023 +0100

    reassoc: Fold some statements [PR108819]

    This spot in update_ops can replace one or both of the assign operands with
    constants, creating 1 & 1 and similar expressions which can confuse later
    passes until they are folded.  Rather than folding both constants by hand
    and also handling swapping of operands for commutative ops if the first one
    is constant and second one is not, the following patch just uses
    fold_stmt_inplace to do that.  I think we shouldn't fold more than the
    single statement because that could screw up the rest of the pass, we'd
have
    to mark all those with uids, visited and the like.

    2023-02-18  Jakub Jelinek  <ja...@redhat.com>

            PR tree-optimization/108819
            * tree-ssa-reassoc.cc (update_ops): Fold new stmt in place.

            * gcc.dg/pr108819.c: New test.

    (cherry picked from commit 32b5875c911f80d551d006d7473e6f1f8705857a)
  • [Bug tree-optimization/108819] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to