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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:11f7d5648c42cd2ef6f0841cde6292b94831e7b6

commit r16-3186-g11f7d5648c42cd2ef6f0841cde6292b94831e7b6
Author: Andrew Pinski <andrew.pin...@oss.qualcomm.com>
Date:   Wed Aug 13 09:19:42 2025 -0700

    forwprop: Move check of limit first [PR121474]

    This is the first step in handling the review part of:
    https://gcc.gnu.org/pipermail/gcc-patches/2025-August/692091.html
    '''
    Oh, as we now do alias walks in forwprop maybe we should make this
    conditional and do
    this not for all pass instances, since it makes forwprop possibly a lot
slower?
    '''

    The check of the limit was after the alias check which could slow down
things.
    This moves the check of the limit to begining of the if.

    Bootstrapped and tested on x86_64-linux-gnu.

    Pushed as obvious.

            PR tree-optimization/121474
    gcc/ChangeLog:

            * tree-ssa-forwprop.cc (optimize_aggr_zeroprop): Move the check
            for limit before the alias check.

    Signed-off-by: Andrew Pinski <andrew.pin...@oss.qualcomm.com>

Reply via email to