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

--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Andre Simoes Dias Vieira
<avie...@gcc.gnu.org>:

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

commit r12-10294-gd0eed43ff39a0bad4a02f8af7a4795e06aea6f80
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Aug 4 11:24:49 2023 +0200

    tree-optimization/110838 - less aggressively fold out-of-bound shifts

    The following adjusts the shift simplification patterns to avoid
    touching out-of-bound shift value arithmetic right shifts of
    possibly negative values.  While simplifying those to zero isn't
    wrong it's violating the principle of least surprise.

            PR tree-optimization/110838
            * match.pd (([rl]shift @0 out-of-bounds) -> zero): Restrict
            the arithmetic right-shift case to non-negative operands.

    (cherry picked from commit 04aa0edcace22a7815cfc57575f1f7b1f166ac10)

Reply via email to