public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/112806] New: Profile-Guided Optimization (PGO) policy regarding explicit user optimization hint behavior
@ 2023-12-01  9:15 zamazan4ik at tut dot by
  2023-12-01  9:20 ` [Bug gcov-profile/112806] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zamazan4ik at tut dot by @ 2023-12-01  9:15 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112806
           Summary: Profile-Guided Optimization (PGO) policy regarding
                    explicit user optimization hint behavior
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zamazan4ik at tut dot by
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Hi!

Right now there is no documentation for the behavior of PGO in the presence of
user-provided optimization hints. It would be good to document how GCC's PGO
implementation handles conflicts between the hints the user explicitly wrote in
their code and the profile they're optimizing against. For example, how do the
following (non-exhaustive) hints behave: [[likely]] and other optimization
attributes, register or inline use, __builtin_expect, etc.

This will help to set user expectations - some users expect explicit
optimization hints to be ignored by PGO while other users assume the hints are
still honored (at least sometimes). If hints are honored, they should be
clearly documented as doing so if that behavior is intentional.

Similar issue in LLVM: https://github.com/llvm/llvm-project/issues/58189

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

end of thread, other threads:[~2023-12-01 10:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-01  9:15 [Bug gcov-profile/112806] New: Profile-Guided Optimization (PGO) policy regarding explicit user optimization hint behavior zamazan4ik at tut dot by
2023-12-01  9:20 ` [Bug gcov-profile/112806] " pinskia at gcc dot gnu.org
2023-12-01  9:20 ` pinskia at gcc dot gnu.org
2023-12-01  9:25 ` zamazan4ik at tut dot by
2023-12-01 10:38 ` 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).