public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "Mark_B53 at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108487] [10/11/12/13 Regression] ~20-30x slowdown in populating std::vector from std::ranges::iota_view Date: Sat, 21 Jan 2023 13:32:53 +0000 [thread overview] Message-ID: <bug-108487-4-XqowqWrAYq@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108487-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108487 --- Comment #2 from MARK BOURGEAULT <Mark_B53 at yahoo dot com> --- >> For fn1, assembly of the inner loop should be identical, so I think the 20% you were seeing may result from different loop alignment with respect to 32b fetch boundary Yes, it does appear that this is the explanation for the difference. Here are the full results: original code * gcc 10.3 -std=c++20 -O3 => fn1 = ~2000ms, fn2 = ~1000ms * gcc 10.3 -std=c++20 -O3 -falign-loops=32 => fn1 = ~2000ms, fn2 = ~1000ms * gcc 12.2 -std=c++20 -O3 => fn1 = ~2500ms, fn2 = ~32000ms * gcc 12.2 -std=c++20 -O3 -falign-loops=32 => fn1 = ~2000ms, fn2 = ~32000ms fn1 only * gcc 10.3 -std=c++20 -O3 => fn1 = ~2500ms * gcc 10.3 -std=c++20 -O3 -falign-loops=32 => fn1 = ~2000ms * gcc 12.2 -std=c++20 -O3 => fn1 = ~2000ms * gcc 12.2 -std=c++20 -O3 -falign-loops=32 => fn1 = ~2000ms >> Also please note that cloud instances backing godbolt.org have different CPUs, so timing results from different runs are not directly comparable. Yes, I know. I really only used godbolt to reach the conclusion that the issue still exists on trunk.
next prev parent reply other threads:[~2023-01-21 13:32 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-20 22:20 [Bug rtl-optimization/108487] New: " Mark_B53 at yahoo dot com 2023-01-21 11:48 ` [Bug tree-optimization/108487] [10/11/12/13 Regression] " amonakov at gcc dot gnu.org 2023-01-21 13:32 ` Mark_B53 at yahoo dot com [this message] 2023-01-21 15:38 ` [Bug libstdc++/108487] " amonakov at gcc dot gnu.org 2023-01-21 23:45 ` redi at gcc dot gnu.org 2023-01-21 23:50 ` redi at gcc dot gnu.org 2023-01-21 23:50 ` redi at gcc dot gnu.org 2023-01-22 3:07 ` Mark_B53 at yahoo dot com 2023-01-22 10:33 ` Mark_B53 at yahoo dot com 2023-01-22 17:14 ` redi at gcc dot gnu.org 2023-01-23 7:45 ` rguenth at gcc dot gnu.org 2023-03-27 11:03 ` rguenth at gcc dot gnu.org 2023-07-07 10:44 ` [Bug libstdc++/108487] [11/12/13/14 " 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-108487-4-XqowqWrAYq@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).