Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 6bc3af2

Browse files
authored
Merge pull request #885 from AndrewBrinker/fix-mir-answer
Fixed MIR answer
2 parents 8157094 + b50e6d0 commit 6bc3af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en-US/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Aside from the compilation model, there are several other aspects of Rust's lang
216216

217217
First, Rust has a moderately-complex type system, and must spend a non-negligible amount of compile time enforcing the constraints that make Rust safe at runtime.
218218

219-
Secondly, the Rust compiler suffers from long-standing technical debt, and notably generates poor-quality LLVM IR which LLVM must spend time "fixing". There is hope that future [MIR-based](https://github.com/rust-lang/rfcs/blob/master/text/1211-mir.md) optimization and translation passes will ease the burden the Rust compiler places on LLVM.
219+
Secondly, the Rust compiler suffers from long-standing technical debt, and notably generates poor-quality LLVM IR which LLVM must spend time "fixing." The addition of a new internal representation called [MIR](https://github.com/rust-lang/rfcs/blob/master/text/1211-mir.md) to the Rust compiler offers the potential to perform more optimizations and improve the quality of LLVM IR generated, but this work has not yet occured.
220220

221221
Thirdly, Rust's use of LLVM for code generation is a double-edged sword: while it enables Rust to have world-class runtime performance, LLVM is a large framework that is not focused on compile-time performance, particularly when working with poor-quality inputs.
222222

0 commit comments

Comments
 (0)