Closed
Description
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.