Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 675
    • Issues 675
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPyPyPy
  • pypypypy
  • Merge requests
  • !554

Enable PGO for CLang

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Bitbucket Importer requested to merge bitbucket/merged-pr-554 into branch/default Jun 14, 2017
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created originally on Bitbucket by Dodan (Dodan Mihai)

Was already merged in Bitbucket before import, marked as merged by the import user

I have enabled PGO for CLang.

PGO works a bit differently for CLang than for gcc, in the sense that the generated profiles need to be aggregated with llvm-profdata, which should be where the clang binary is. Therefore, I added:

  • the location of llvm-profdata for both Unix and Darwin
  • after the training phase, I have added the merger phase, used only for CLang, where as for GCC, it simply returns true.
  • removed the -fno-flto from the PGO compilation, as the default -flto has been removed and enabling it for PGO explicitly shows an 8% improvement overall. (against 5.8.0 with LTO).
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bitbucket/merged-pr-554