3 ms·
Does the addition of MIR have any immediate positive impact on compile times or binary optimization?
by theseoafs 10y ago
Does the addition of MIR have any immediate positive impact on compile times or binary optimization?
- steveklabnik 10y agoAs with any large-scale change, it depends. We did testing across the ecosystem before turning it on by default (that will be in a future release, not 1.11) and there weren't any major regressions, at least. Some small improvements are there. For example: https://github.com/rust-lang/rust/pull/34096#issuecomment-224397443 https://github.com/rust-lang/rust/pull/34096#issuecomment-22...
- pcwalton 10y agoServo's compile time went down by about 20% or so. We think that it's because non-zeroing drop enabled LLVM's memcpy optimizer (which is currently pretty fragile pending the MemorySSA rewrite) to do a better job.
- kzrdude 10y agoIt doesn't seem like it -- the benefits will be developed over time, for example MIR-based optimization passes.