public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/113301] [12/13/14 Regression] Missed optimization: (1/(x+1))/2 => 0 since gcc-12
Date: Thu, 11 Jan 2024 18:01:50 +0000	[thread overview]
Message-ID: <bug-113301-4-PboSiYVrqh@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-113301-4@http.gcc.gnu.org/bugzilla/>

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 <pinskia@gcc.gnu.org>:

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

commit r14-7148-g7f56a90269b393fcc55ef08e0990fafb7b1c24b4
Author: Andrew Pinski <quic_apinski@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_apinski@quicinc.com>

  parent reply	other threads:[~2024-01-11 18:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10  5:24 [Bug tree-optimization/113301] New: " 652023330028 at smail dot nju.edu.cn
2024-01-10  5:50 ` [Bug tree-optimization/113301] " pinskia at gcc dot gnu.org
2024-01-10  7:49 ` rguenth at gcc dot gnu.org
2024-01-10  9:03 ` jakub at gcc dot gnu.org
2024-01-10 10:16 ` pinskia at gcc dot gnu.org
2024-01-10 17:11 ` jakub at gcc dot gnu.org
2024-01-10 20:37 ` amacleod at redhat dot com
2024-01-10 22:12 ` amacleod at redhat dot com
2024-01-10 22:25 ` pinskia at gcc dot gnu.org
2024-01-11  4:24 ` pinskia at gcc dot gnu.org
2024-01-11 18:01 ` cvs-commit at gcc dot gnu.org [this message]
2024-01-11 18:03 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-113301-4-PboSiYVrqh@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).