Skip to content

compiler-rt: omit symbols that are not needed because of machine instructions #11884

@andrewrk

Description

@andrewrk

As an optimization, our compiler-rt can check if generating a given symbol would be redundant, because it would never be called due to a machine code instruction being available, and avoid calling @export for that symbol. This will make 2 small improvements:

  • Faster compiler-rt build from cold cache (fewer functions to optimize)
  • Faster link against compiler-rt (since the static archive will be smaller)

Similar issue: #11883

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler-rtcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.optimization

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions