Skip to content

Applying additional optimizations to clang (LTO, PGO, CSPGO, and BOLT) #348

@michaeleisel

Description

@michaeleisel

Comment:

There are a number of optimizations that could be done to the clang binary, and the libraries it loads, that aren't currently being done. LTO was specifically discussed here, but I think it'd be good to discuss all these different optimization topics together, as they're all along the same lines of increasing compilation time/complexity for the sake of better performance. Together, these optimizations can reduce the time clang takes for long compilations by 30% or more. LLVM 20's own releases include clang binaries that have these sorts of optimizations applied.

In the LTO issue, it was said that it'd need to use the same compiler/version for all downstream dependencies. I'm curious if someone could explain the connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions