rust/compiler/rustc_codegen_ssa
Yuki Okushi 2722c2aa33
Rollup merge of #98078 - erikdesjardins:uncheckedsize, r=petrochenkov
Use unchecked mul to compute slice sizes

This allows LLVM to realize that `slice.len() > 0` iff `slice.len() * size_of::<T>() > 0`, allowing a branch on the latter to be folded into the former when dropping vecs and boxed slices, in some cases.

Fixes (partially) #96497
2022-06-15 12:02:03 +09:00
..
src Rollup merge of #98078 - erikdesjardins:uncheckedsize, r=petrochenkov 2022-06-15 12:02:03 +09:00
Cargo.toml Fix emscripten linker invocation 2022-06-03 17:02:14 +00:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

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