https://gcc.gnu.org/g:590d8e0955031bbdf5bda1f81eaf0a782cef226b

commit 590d8e0955031bbdf5bda1f81eaf0a782cef226b
Author: Alexandre Oliva <ol...@gnu.org>
Date:   Sat Nov 2 00:42:23 2024 -0300

    check ifcombine bitmap count

Diff:
---
 gcc/tree-ssa-ifcombine.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/tree-ssa-ifcombine.cc b/gcc/tree-ssa-ifcombine.cc
index ac4811e42e08..3527354106d8 100644
--- a/gcc/tree-ssa-ifcombine.cc
+++ b/gcc/tree-ssa-ifcombine.cc
@@ -547,7 +547,7 @@ ifcombine_replace_cond (gcond *inner_cond, bool inner_inv,
        auto_bitmap used;
        basic_block outer_bb = gimple_bb (outer_cond);
 
-       bitmap_tree_view (used);
+       /* bitmap_tree_view (used); */
 
        /* Mark SSA DEFs that are referenced by cond and may thus need to be
           moved to outer.  */
@@ -558,6 +558,7 @@ ifcombine_replace_cond (gcond *inner_cond, bool inner_inv,
 
        if (!bitmap_empty_p (used))
          {
+           gcc_checking_assert (bitmap_count_bits (used) < 5);
            /* Iterate up from inner_cond, moving DEFs identified as used by
               cond, and marking USEs in the DEFs for moving as well.  */
            gimple_stmt_iterator gsins = gsi_for_stmt (outer_cond);

Reply via email to