Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk"

This reverts commit 8007b506ac, reversing
changes made to e55c13e109.
This commit is contained in:
Erik Desjardins
2021-08-15 13:25:17 -04:00
parent 2a6fb9a4c0
commit 8e11199a15
13 changed files with 57 additions and 22 deletions

View File

@@ -9,6 +9,9 @@ pub struct RemoveZsts;
impl<'tcx> MirPass<'tcx> for RemoveZsts {
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
if tcx.sess.mir_opt_level() < 3 {
return;
}
let param_env = tcx.param_env(body.source.def_id());
let (basic_blocks, local_decls) = body.basic_blocks_and_local_decls_mut();
for block in basic_blocks.iter_mut() {