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 middle-end/108786] bitmap_first_set_bit misses a bitmap_clear_first_bit
Date: Tue, 18 Apr 2023 14:45:21 +0000	[thread overview]
Message-ID: <bug-108786-4-mIhKI1qhfY@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108786-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

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

commit r14-41-gf548ece7abc0a0c81dd049e9f8b480ff2c38e18b
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Feb 14 16:36:03 2023 +0100

    middle-end/108786 - add bitmap_clear_first_set_bit

    This adds bitmap_clear_first_set_bit and uses it where previously
    bitmap_clear_bit followed bitmap_first_set_bit.  The advantage
    is speeding up the search and avoiding to clobber ->current.

            PR middle-end/108786
            * bitmap.h (bitmap_clear_first_set_bit): New.
            * bitmap.cc (bitmap_first_set_bit_worker): Rename from
            bitmap_first_set_bit and add optional clearing of the bit.
            (bitmap_first_set_bit): Wrap bitmap_first_set_bit_worker.
            (bitmap_clear_first_set_bit): Likewise.
            * df-core.cc (df_worklist_dataflow_doublequeue): Use
            bitmap_clear_first_set_bit.
            * graphite-scop-detection.cc (scop_detection::merge_sese):
            Likewise.
            * sanopt.cc (sanitize_asan_mark_unpoison): Likewise.
            (sanitize_asan_mark_poison): Likewise.
            * tree-cfgcleanup.cc (cleanup_tree_cfg_noloop): Likewise.
            * tree-into-ssa.cc (rewrite_blocks): Likewise.
            * tree-ssa-dce.cc (simple_dce_from_worklist): Likewise.
            * tree-ssa-sccvn.cc (do_rpo_vn_1): Likewise.

  parent reply	other threads:[~2023-04-18 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-14 14:21 [Bug middle-end/108786] New: " rguenth at gcc dot gnu.org
2023-02-14 14:30 ` [Bug middle-end/108786] " rguenth at gcc dot gnu.org
2023-04-18 14:45 ` cvs-commit at gcc dot gnu.org [this message]
2023-04-18 14:57 ` rguenth 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-108786-4-mIhKI1qhfY@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).