]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #83666 - Amanieu:instrprof-order, r=tmandry
authorbors <bors@rust-lang.org>
Wed, 31 Mar 2021 03:20:33 +0000 (03:20 +0000)
committerbors <bors@rust-lang.org>
Wed, 31 Mar 2021 03:20:33 +0000 (03:20 +0000)
commit6ff482bde5d22a3a0171edb3245327f43cf9b593
treee785cd9af3f92d4bd0ebc38bc7f0f33ba3d3a009
parent65b44b0320e88f5a0608126c36b02be1b840700f
parentcad9b6b695e86c7c23482876d2f6fefd64451ab3
Auto merge of #83666 - Amanieu:instrprof-order, r=tmandry

Run LLVM coverage instrumentation passes before optimization passes

This matches the behavior of Clang and allows us to remove several
hacks which were needed to ensure functions weren't optimized away
before reaching the instrumentation pass.

Fixes #83429

cc `@richkadel`

r? `@tmandry`
compiler/rustc_typeck/src/collect.rs