3 ms·
How much of this is the Rust compiler and how much is generic LLVM optimization passes?
by gamegoblin 9y ago
How much of this is the Rust compiler and how much is generic LLVM optimization passes?
- pcwalton 9y agoIt's the combination of LLVM, the Rust compiler providing enough information to LLVM, and very optimized library code. As well as plenty of testing to make sure this kind of stuff doesn't regress :)
- Manishearth 9y agoThe compiler itself currently does only some basic optimizations, it's all LLVM. However, the compiler does have perfect aliasing info, and it does provide a subset of this info to LLVM (I don't think LLVM IR currently supports more fine grained aliasing info being provided from the compiler). This does help certain optimizations; though I'm unsure if this one is one of them.