3 ms·
> 2. Cranelift could potentially improve backend codegen compile times significantly as well. I've been told that the Cranelift team (at least for the time bei
by hobofan 3y ago
> 2. Cranelift could potentially improve backend codegen compile times significantly as well.
I've been told that the Cranelift team (at least for the time being) doesn't have the intention on focusing on the optimizer to a degree where it would be competitive with LLVM's optimizers (which would also be a huge effort). So if you want faster compile times you would have to take significant performance hits (which for a lot of code compiled in CI is not a trade-off that people are willing to take).
- insanitybit 3y agoYes, to be clear, Cranelift would be suitable for dev and test builds, you'd likely use llvm for release builds. So in your CI builds you'll almost certainly stick to llvm. (1) and (3) are still very significant, fwiw.
- estebank 3y agoBeyond specific optimization and implementation details of a compiler, the three variables of "compilation speed", "generated code optimization" and "language expressiveness" are fundamentally in tension. In order to move one axis you have to affect one or both of the other two.