public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "magiblot at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97077] Missed loop unrolling with range for over initializer list Date: Sun, 04 Jul 2021 14:13:37 +0000 [thread overview] Message-ID: <bug-97077-4-CTaxKBLfG7@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-97077-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97077 magiblot at hotmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magiblot at hotmail dot com --- Comment #2 from magiblot at hotmail dot com --- According to Godbolt, from GCC 7.1 to GCC 7.5 the loop gets unrolled if the initializer list has no more than four elements: https://godbolt.org/z/YhKjn4qj3 So this is not only a missed optimization, but also a regression.
next prev parent reply other threads:[~2021-07-04 14:13 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-16 21:01 [Bug c++/97077] New: " bmburstein at gmail dot com 2020-09-17 6:32 ` [Bug c++/97077] " rguenth at gcc dot gnu.org 2021-07-04 14:13 ` magiblot at hotmail dot com [this message] 2021-12-11 1:31 ` pinskia at gcc dot gnu.org 2021-12-27 4:11 ` [Bug tree-optimization/97077] " pinskia 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-97077-4-CTaxKBLfG7@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).