Closed
Description
I tried compiling my crate with RUSTFLAGS="-Z merge-functions=aliases"
, but saw no difference in output size, whereas RUSTFLAGS="-C passes=mergefunc"
showed a 1% improvement (not much but I'd take it). I think this is because of this code:
rust/compiler/rustc_codegen_ssa/src/back/write.rs
Lines 248 to 259 in c3b7d7b
which is probably intended to exclude opt-level=0 builds but should really at least allow Size (s) and SizeMin (z), if not enable them by default.