Skip to content

Discover better llvm optimizations for Rust #3519

Closed
@brson

Description

@brson

Two observations:

  • Running llvm optimizations is the greater part of rustc's time, so we should take care not to run ineffective optimizations.
  • Rust code has its own unique character so what are good llvm defaults may not be the best Rust defaults

Let us find the ideal combination of passes that is both fast to compile and creates fast code. LLVM almost certainly has tools for this. Testing should be done with split stacks disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions