public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/103670] New: Incorrect optimization of loop termination: Early exit with any optimization
@ 2021-12-12 18:14 robert.muench at saphirion dot com
  2021-12-12 19:54 ` [Bug c/103670] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: robert.muench at saphirion dot com @ 2021-12-12 18:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103670
           Summary: Incorrect optimization of loop termination: Early exit
                    with any optimization
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: robert.muench at saphirion dot com
  Target Milestone: ---

Created attachment 51981
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51981&action=edit
Assembly output with & without -Os optimization

Whenever any -Ox option is used, the loop exits after 3 rounds, even the
counter should run for 6 rounds. Without any -O option, the code works as
expected.

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

end of thread, other threads:[~2021-12-13 11:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-12 18:14 [Bug c/103670] New: Incorrect optimization of loop termination: Early exit with any optimization robert.muench at saphirion dot com
2021-12-12 19:54 ` [Bug c/103670] " pinskia at gcc dot gnu.org
2021-12-12 21:04 ` [Bug middle-end/103670] " pinskia at gcc dot gnu.org
2021-12-12 23:14 ` robert.muench at saphirion dot com
2021-12-12 23:16 ` robert.muench at saphirion dot com
2021-12-12 23:22 ` pinskia at gcc dot gnu.org
2021-12-13 11:34 ` robert.muench at saphirion dot com

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