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/94802] Failure to recognize identities with __builtin_clz
Date: Thu, 31 Dec 2020 10:10:11 +0000	[thread overview]
Message-ID: <bug-94802-4-OTh7M9Fl28@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-94802-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

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

commit r11-6378-gd2eb616a0f7bea78164912aa438c29fe1ef5774a
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Dec 31 11:09:26 2020 +0100

    match.pd: Add clz(X) == 0 -> (int)X < 0 etc. simpifications [PR94802]

    The following patch adds some clz simplifications.  If
    clz is 0, then the MSB of the argument is set, and if clz is prec-1, then
    the argument is 1.

    2020-12-31  Jakub Jelinek  <jakub@redhat.com>

            PR tree-optimization/94802
            * match.pd (clz(X) == 0 -> (int)X < 0): New simplification.
            (clz(X) == (prec-1) -> X == 1): Likewise.

            * gcc.dg/tree-ssa/pr94802-1.c: New test.

  parent reply	other threads:[~2020-12-31 10:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-27 15:10 [Bug tree-optimization/94802] New: " gabravier at gmail dot com
2020-04-27 15:14 ` [Bug tree-optimization/94802] " gabravier at gmail dot com
2020-04-27 15:22 ` jakub at gcc dot gnu.org
2020-12-31 10:10 ` cvs-commit at gcc dot gnu.org [this message]
2020-12-31 10:15 ` jakub at gcc dot gnu.org
2021-01-02  8:44 ` jakub at gcc dot gnu.org
2021-01-05 10:25 ` rguenth at gcc dot gnu.org
2021-01-05 10:28 ` rguenth at gcc dot gnu.org
2021-01-05 11:18 ` jakub at gcc dot gnu.org
2021-01-05 12:13 ` jakub at gcc dot gnu.org
2021-01-05 14:32 ` denis.campredon at gmail dot com
2021-01-05 18:14 ` cvs-commit at gcc dot gnu.org
2021-01-05 18:16 ` jakub at gcc dot gnu.org
2021-08-14 22:29 ` 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-94802-4-OTh7M9Fl28@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).