meow
Some checks are pending
test / test (push) Waiting to run

This commit is contained in:
nora 2025-09-29 21:22:21 +02:00
parent d57e076267
commit 97b2f2c4be
2 changed files with 37 additions and 2 deletions

View file

@ -584,6 +584,41 @@ fn main() { math::add() }
- annoying to set up - annoying to set up
</textarea> </textarea>
</section> </section>
<section data-markdown>
<textarea data-template>
## inlining across codegen units in the same crate
- ThinLTO across different codegen units by default
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## `Cargo.toml` config
```toml
[profile.release]
lto = "thin"
codegen-units = 1
```
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## and why did `#[inline]` make the error go away?
```rust
pub fn error() {
// vvvvvvvvvvv post-mono error!
let _x: [u8; usize::MAX] = [0; usize::MAX];
}
```
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## happy compiling
</textarea>
</section>
</div> </div>
</div> </div>

View file

@ -18,7 +18,6 @@
- resolve, typecheck - resolve, typecheck
- MIR - MIR
- intermediate representation - intermediate representation
- CFG
- borrow checker - borrow checker
- LLVM IR - LLVM IR
- LLVM backend - LLVM backend
@ -71,6 +70,7 @@
- dont always use it because its slow - dont always use it because its slow
- dont forget about it - dont forget about it
- benchmark - benchmark
- todo
- if you dont want to worry about this as an application - if you dont want to worry about this as an application
- LTO - LTO
- no cross-crate-inline-threshold - no cross-crate-inline-threshold