rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.59k stars 100 forks source link

Translate MIR to clif ir in parallel with parallel rustc #1489

Closed bjorn3 closed 4 months ago

bjorn3 commented 4 months ago

On dev-desktop the advantage of cg_clif over cg_llvm on simple-raytracer is 15% when parallel rustc is disabled. With -Zthreads=16 the advantage goes from 5% to 22% with this change.

Fixes https://github.com/rust-lang/rustc_codegen_cranelift/issues/1423