public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/101724] New: Compile-time hog w/ --param threader-mode=ranger
@ 2021-08-02 11:06 asolokha at gmx dot com
  2021-08-02 12:24 ` [Bug tree-optimization/101724] [12 Regression] Compile time " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: asolokha at gmx dot com @ 2021-08-02 11:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101724
           Summary: Compile-time hog w/ --param threader-mode=ranger
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-12.0.0-alpha20210801 snapshot (g:6f0c43e97825ee54e3779afbedcd0def12443001)
takes indefinite time to compile the following testcase w/ -O2 -fpeel-loops
--param fsm-scale-path-stmts=1 --param threader-iterative=1 --param
threader-mode=ranger:

int a;

__attribute__ ((simd)) char
foo (void)
{
  if (a < 0)
    a = 0;

  /* no return statement */
}

The (arbitrary trimmed) head of "perf top" output:

% timeout 10 gcc-12.0.0 -O2 -fpeel-loops --param fsm-scale-path-stmts=1 --param
threader-iterative=1 --param threader-mode=ranger -c tbimsyuw.c
zsh: exit 124

  50.63%  cc1           [.] path_range_query::precompute_ranges_in_block
  24.01%  cc1           [.] path_range_query::range_defined_in_block
   9.05%  cc1           [.] bitmap_bit_p
   6.93%  cc1           [.] gori_map::exports
   1.85%  cc1           [.] back_threader_profitability::profitable_path_p
   0.62%  cc1           [.] estimate_num_insns
   0.60%  cc1           [.] back_threader::find_paths_to_names
   0.55%  cc1           [.] find_edge
   0.55%  cc1           [.] hash_table<default_hash_traits<basic_block_def*>,
false, xcallocator>::find_slot_with_hash
   0.37%  cc1           [.] path_range_query::ssa_range_in_phi
   0.28%  cc1           [.] irange::varying_compatible_p
   0.25%  cc1           [.] wide_int_to_tree_1
   0.25%  cc1           [.] maybe_hot_count_p
   0.25%  cc1           [.] bitmap_clear_bit
   0.20%  cc1           [.] bitmap_set_bit
   0.18%  cc1           [.] irange::operator=
   0.18%  cc1           [.] optimize_function_for_size_p
   0.18%  cc1           [.] get_base_address
   0.17%  cc1           [.] profile_count::from_gcov_type
   0.15%  cc1           [.] path_range_query::precompute_ranges
   0.13%  cc1           [.] back_threader::resolve_phi
   0.13%  cc1           [.] fold_using_range::fold_stmt
   0.12%  cc1           [.] fold_using_range::range_of_range_op
   0.10%  cc1           [.] fold_using_range::postfold_gcond_edges
   0.10%  cc1           [.] optimize_bb_for_size_p
   0.10%  libc-2.33.so  [.] malloc
   0.10%  cc1           [.] profile_count::compatible_p
   0.08%  cc1           [.] bitmap_count_bits
   0.08%  cc1           [.] gimple_get_lhs
   0.08%  cc1           [.] operand_compare::verify_hash_value
   0.08%  cc1           [.] gimple_call_builtin_p
   0.08%  cc1           [.] last_stmt
   0.08%  cc1           [.] ssa_global_cache::set_global_range
   0.07%  cc1           [.] estimate_operator_cost
   0.07%  cc1           [.] get_gimple_control_stmt
   0.07%  libc-2.33.so  [.] cfree@GLIBC_2.2.5
   0.05%  cc1           [.] operator_lt::fold_range
   0.05%  cc1           [.] fur_stmt::get_phi_operand
   0.05%  cc1           [.] irange::set_varying
   0.05%  cc1           [.] wi::min_value
   0.05%  cc1           [.] cache_wide_int_in_type_cache
   0.05%  cc1           [.] ssa_global_cache::get_global_range
   0.05%  cc1           [.] wi::to_wide
   0.05%  cc1           [.] range_op_handler
   0.03%  cc1           [.] int_cst_hasher::hash
   0.03%  cc1           [.] wi::extended_tree<576>::extended_tree
   0.03%  cc1           [.] operand_compare::operand_equal_p
   0.03%  cc1           [.] irange::lower_bound
   0.03%  cc1           [.] irange::upper_bound

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tree-optimization/101724] [12 Regression] Compile time hog w/ --param threader-mode=ranger
  2021-08-02 11:06 [Bug tree-optimization/101724] New: Compile-time hog w/ --param threader-mode=ranger asolokha at gmx dot com
@ 2021-08-02 12:24 ` rguenth at gcc dot gnu.org
  2021-08-02 13:06 ` aldyh at gcc dot gnu.org
  2021-08-02 15:03 ` aldyh at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-02 12:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldyh at gcc dot gnu.org,
                   |                            |amacleod at redhat dot com
   Target Milestone|---                         |12.0
            Summary|Compile time hog w/ --param |[12 Regression] Compile
                   |threader-mode=ranger        |time hog w/ --param
                   |                            |threader-mode=ranger

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tree-optimization/101724] [12 Regression] Compile time hog w/ --param threader-mode=ranger
  2021-08-02 11:06 [Bug tree-optimization/101724] New: Compile-time hog w/ --param threader-mode=ranger asolokha at gmx dot com
  2021-08-02 12:24 ` [Bug tree-optimization/101724] [12 Regression] Compile time " rguenth at gcc dot gnu.org
@ 2021-08-02 13:06 ` aldyh at gcc dot gnu.org
  2021-08-02 15:03 ` aldyh at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-08-02 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
--param threader-iterative is an internal testing construct and not meant for
public consumption.  I will submit a patch removing it to avoid further
confusion.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tree-optimization/101724] [12 Regression] Compile time hog w/ --param threader-mode=ranger
  2021-08-02 11:06 [Bug tree-optimization/101724] New: Compile-time hog w/ --param threader-mode=ranger asolokha at gmx dot com
  2021-08-02 12:24 ` [Bug tree-optimization/101724] [12 Regression] Compile time " rguenth at gcc dot gnu.org
  2021-08-02 13:06 ` aldyh at gcc dot gnu.org
@ 2021-08-02 15:03 ` aldyh at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-08-02 15:03 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
I've removed --param threader-iterative from trunk.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-02 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-02 11:06 [Bug tree-optimization/101724] New: Compile-time hog w/ --param threader-mode=ranger asolokha at gmx dot com
2021-08-02 12:24 ` [Bug tree-optimization/101724] [12 Regression] Compile time " rguenth at gcc dot gnu.org
2021-08-02 13:06 ` aldyh at gcc dot gnu.org
2021-08-02 15:03 ` aldyh at gcc dot gnu.org

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).