public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103254] New: [12 Regression] Compile time hog in compare_values_warnv Date: Mon, 15 Nov 2021 17:27:53 +0000 [thread overview] Message-ID: <bug-103254-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103254 Bug ID: 103254 Summary: [12 Regression] Compile time hog in compare_values_warnv 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-alpha20111107 snapshot (g:962ff7d2849e1fa6a1fe0535aa2dec5c2b9a32a6) takes indefinite time to compile the following testcase w/ -O3: short int i; void foo (void) { for (i = 1; i < 2; i += 4) { int j; for (j = 0; j < 5; j += 4) { int k; for (k = 0; k < 68; k += 4) { i &= j; j &= i; } } } } % timeout 10 gcc-12.0.0 -O3 -c mgyelpiv.c zsh: exit 124 timeout 10 gcc-12.0.0 -O3 -c mgyelpiv.c Several top entries from perf top output: 8.03% cc1 [.] wide_int_to_tree_1 5.93% cc1 [.] compare_values_warnv 5.38% cc1 [.] irange::irange_union 4.72% cc1 [.] irange::varying_compatible_p 4.34% cc1 [.] wi::to_wide 3.23% cc1 [.] irange::irange_intersect 3.12% cc1 [.] tree_int_cst_compare 3.07% cc1 [.] wi::force_to_size 2.76% cc1 [.] useless_type_conversion_p 2.67% cc1 [.] irange::lower_bound 2.38% cc1 [.] irange::set_varying 2.31% cc1 [.] wi::shifted_mask 2.17% cc1 [.] get_single_symbol 1.91% cc1 [.] int_cst_hasher::hash 1.86% cc1 [.] irange::verify_range 1.84% cc1 [.] wi::min_value 1.84% cc1 [.] irange::irange_set_anti_range 1.63% cc1 [.] wi::lts_p<generic_wide_int<wide_int_ref_storage<false, false> >, generic_wide_int<wide_int_ref_storage<false, f 1.46% cc1 [.] operand_compare::operand_equal_p 1.37% cc1 [.] operator_cast::fold_pair 1.35% cc1 [.] gori_compute::compute_operand_range
next reply other threads:[~2021-11-15 17:27 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-15 17:27 asolokha at gmx dot com [this message] 2021-11-16 8:18 ` [Bug tree-optimization/103254] [12 Regression] Compile time hog in compare_values_warnv since r12-4790-g4b3a325f07acebf4 marxin at gcc dot gnu.org 2021-11-16 10:11 ` aldyh at gcc dot gnu.org 2021-11-18 16:34 ` amacleod at redhat dot com 2021-11-19 16:43 ` cvs-commit at gcc dot gnu.org 2021-11-19 16:44 ` amacleod at redhat dot com 2021-11-25 10:55 ` cvs-commit at gcc dot gnu.org 2021-11-25 10:55 ` cvs-commit 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-103254-4@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: linkBe 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).