Revert "Revert "Auto merge of #83417 - erikdesjardins:enableremovezsts, r=oli-obk""
This reverts commit 8e11199a15
.
This commit is contained in:
parent
ebedfedcd8
commit
6ea536d99b
13 changed files with 22 additions and 57 deletions
|
@ -9,9 +9,6 @@ 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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue