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

--- Comment #9 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:7f56a90269b393fcc55ef08e0990fafb7b1c24b4

commit r14-7148-g7f56a90269b393fcc55ef08e0990fafb7b1c24b4
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Wed Jan 10 14:25:37 2024 -0800

    match: Delay folding of 1/x into `(x+1u)<2u?x:0` until late [PR113301]

    Since currently ranger does not work with the complexity of COND_EXPR in
    some cases so delaying the simplification of `1/x` for signed types
    help code generation.
    tree-ssa/divide-8.c is a new testcase where this can help.

    Bootstrapped and tested on x86_64-linux-gnu with no regressions.

            PR tree-optimization/113301

    gcc/ChangeLog:

            * match.pd (`1/x`): Delay signed case until late.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/divide-8.c: New test.

    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Reply via email to