From: Mikael Morin <morin-mikael@orange.fr>
To: gcc-patches@gcc.gnu.org
Subject: Re: [COMMITTED] Optimize [0 = x & MASK] in range-ops.
Date: Tue, 27 Sep 2022 11:26:20 +0200 [thread overview]
Message-ID: <fd89632d-3393-8133-147e-d341338bc313@orange.fr> (raw)
In-Reply-To: <20220926172441.3219466-1-aldyh@redhat.com>
Le 26/09/2022 à 19:24, Aldy Hernandez via Gcc-patches a écrit :
> For [0 = x & MASK], we can determine that x is ~MASK.
>
Suggestion: as AND is a bitwise operator, a X non-zero bit can be
cleared for every bit at which the result is cleared and the MASK is
set, so what you do here can be extended to non-zero result values.
prev parent reply other threads:[~2022-09-27 9:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 17:24 Aldy Hernandez
2022-09-26 23:27 ` Jeff Law
2022-09-27 9:26 ` Mikael Morin [this message]
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=fd89632d-3393-8133-147e-d341338bc313@orange.fr \
--to=morin-mikael@orange.fr \
--cc=gcc-patches@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).