about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-13 17:48:41 +0000
committerbors <bors@rust-lang.org>2021-01-13 17:48:41 +0000
commit9bc8b00b4a4e38ccbc3aeec2c123538973c67eba (patch)
treed18339eb142ba6c65939963d157f9db45e72ae37 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parentfd2df74902fa98bcb71f85fd548c3eb399e6a96a (diff)
parent16857317a6fb5bc966a0840c21d8000c2cd052ca (diff)
downloadrust-9bc8b00b4a4e38ccbc3aeec2c123538973c67eba.tar.gz
rust-9bc8b00b4a4e38ccbc3aeec2c123538973c67eba.zip
Auto merge of #80718 - tmiasko:skip-opt-mir, r=oli-obk
Consistently avoid constructing optimized MIR when not doing codegen

The optimized MIR for closures is being encoded unconditionally, while
being unnecessary for cargo check. This turns out to be especially
costly with MIR inlining enabled, since it triggers computation of
optimized MIR for all callees that are being examined for inlining
purposes https://github.com/rust-lang/rust/pull/77307#issuecomment-751915450.

Skip encoding of optimized MIR for closures, enum constructors, struct
constructors, and trait fns when not doing codegen, like it is already
done for other items since 49433.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions