about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-01-12 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-01-13 00:33:36 +0100
commita6dd7b505615620a9181891db06d39b1b1043f30 (patch)
treee5d8a1491a8e779101b5b6cafb2f936496bb7d26 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent1bf3949398797dd499a18eb06953a7601b8eb146 (diff)
downloadrust-a6dd7b505615620a9181891db06d39b1b1043f30.tar.gz
rust-a6dd7b505615620a9181891db06d39b1b1043f30.zip
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.

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