public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/96475] New: direct threaded interpreter with computed gotos generates suboptimal dispatch loop
@ 2020-08-05  0:14 npiggin at gmail dot com
  2020-08-05 10:02 ` [Bug rtl-optimization/96475] " mikpelinux at gmail dot com
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: npiggin at gmail dot com @ 2020-08-05  0:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96475
           Summary: direct threaded interpreter with computed gotos
                    generates suboptimal dispatch loop
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: npiggin at gmail dot com
                CC: segher at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc64le-linux-gnu

Created attachment 48999
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48999&action=edit
test case

The attached test case code generation with -O2 for run_program_goto generates
a central indirect branch dispatch to handlers that branch back to the central
dispatcher.

Direct threaded code with indirect branches between handlers is faster on a
POWER9 when there are no branch mispredictions due to fewer branches, and it
should generally do better with branch prediction when there is an indirect
branch from each handler.

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

end of thread, other threads:[~2021-05-04 12:31 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05  0:14 [Bug rtl-optimization/96475] New: direct threaded interpreter with computed gotos generates suboptimal dispatch loop npiggin at gmail dot com
2020-08-05 10:02 ` [Bug rtl-optimization/96475] " mikpelinux at gmail dot com
2020-08-05 17:54 ` segher at gcc dot gnu.org
2020-08-05 22:33 ` mikpelinux at gmail dot com
2020-08-05 22:55 ` segher at gcc dot gnu.org
2020-08-06 16:44 ` mikpelinux at gmail dot com
2020-08-06 23:47 ` segher at gcc dot gnu.org
2020-09-09 16:56 ` cvs-commit at gcc dot gnu.org
2020-09-09 17:06 ` segher at gcc dot gnu.org
2020-09-09 19:27 ` clyon at gcc dot gnu.org
2020-09-09 19:37 ` segher at gcc dot gnu.org
2020-09-09 19:53 ` clyon at gcc dot gnu.org
2020-09-09 20:05 ` segher at gcc dot gnu.org
2020-09-10  8:58 ` clyon at gcc dot gnu.org
2020-09-10  9:30 ` clyon at gcc dot gnu.org
2020-09-10 10:50 ` acoplan at gcc dot gnu.org
2020-09-13  5:50 ` dinuxbg at gmail dot com
2020-09-14  8:18 ` asolokha at gmx dot com
2020-09-14 13:42 ` segher at gcc dot gnu.org
2020-09-14 14:34 ` segher at gcc dot gnu.org
2020-09-14 14:35 ` segher at gcc dot gnu.org
2020-09-14 15:24 ` asolokha at gmx dot com
2020-09-14 16:02 ` clyon at gcc dot gnu.org
2020-09-14 19:07 ` dinuxbg at gmail dot com
2020-09-15 13:18 ` cvs-commit at gcc dot gnu.org
2021-05-04 12:31 ` rguenth at gcc dot gnu.org

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