Skip to content

Run LLVM function passes immediately after translating a function to LLVM IR. #12125

@eddyb

Description

@eddyb

I can see rustc spawning one function pass thread per core, leaving only module passes to account for after trans finishes and the RAM usage peak in trans being lower.
Since we may be translating dependencies first (can someone confirm?), we could even be able to run module passes on isolated function graphs, but that's further into the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions