public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99823] New: -funroll-all-loops bugs when using contexpr variable
@ 2021-03-30  4:42 ustcw0ng at mail dot ustc.edu.cn
  2021-03-30 13:06 ` [Bug c++/99823] " rguenth at gcc dot gnu.org
  2021-03-31  2:56 ` [Bug tree-optimization/99823] " ustcw0ng at mail dot ustc.edu.cn
  0 siblings, 2 replies; 3+ messages in thread
From: ustcw0ng at mail dot ustc.edu.cn @ 2021-03-30  4:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99823
           Summary: -funroll-all-loops bugs when using contexpr variable
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ustcw0ng at mail dot ustc.edu.cn
  Target Milestone: ---

Created attachment 50483
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50483&action=edit
constexpr.cpp && unroll.cpp

-funroll-all-loops indicates "Unroll all loops, even if their number of
iterations is uncertain when the loop is entered. This usually makes programs
run more slowly.". But in the following example constexpr.cpp can never turn to
unroll.cpp, even if number of iterations is certain due to constexpr.

compiler flag: -O3 -std=c++2a -DNDEBUG -funroll-all-loops

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

end of thread, other threads:[~2021-03-31  2:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30  4:42 [Bug c++/99823] New: -funroll-all-loops bugs when using contexpr variable ustcw0ng at mail dot ustc.edu.cn
2021-03-30 13:06 ` [Bug c++/99823] " rguenth at gcc dot gnu.org
2021-03-31  2:56 ` [Bug tree-optimization/99823] " ustcw0ng at mail dot ustc.edu.cn

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