rust/compiler/rustc_codegen_ssa
David Venhoek a174d65709 Added llvm lifetime annotations to function call argument temporaries.
The goal of this change is to ensure that llvm will do stack slot
optimization on these temporaries. This ensures that in code like:
```rust
const A: [u8; 1024] = [0; 1024];

fn copy_const() {
    f(A);
    f(A);
}
```
we only use 1024 bytes of stack space, instead of 2048 bytes.
2022-06-22 11:47:22 +02:00
..
src Added llvm lifetime annotations to function call argument temporaries. 2022-06-22 11:47:22 +02:00
Cargo.toml Fix emscripten linker invocation 2022-06-03 17:02:14 +00:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.