about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2024-01-07 12:22:33 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2024-01-11 09:58:22 +0000
commitbc35ee41fa6751a85a528656953b581fb02ddd25 (patch)
tree9cd177db52e15b06df230dac41e935c697278b50 /compiler/rustc_mir_transform/src
parent974b727874b18a161c17fd0eaa4ca883d05bf19a (diff)
downloadrust-bc35ee41fa6751a85a528656953b581fb02ddd25.tar.gz
rust-bc35ee41fa6751a85a528656953b581fb02ddd25.zip
Do not run simplify_locals inside DSE.
The full pass is run short after.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/dead_store_elimination.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/dead_store_elimination.rs b/compiler/rustc_mir_transform/src/dead_store_elimination.rs
index 9dd5aa4c8bd..c27718d7bda 100644
--- a/compiler/rustc_mir_transform/src/dead_store_elimination.rs
+++ b/compiler/rustc_mir_transform/src/dead_store_elimination.rs
@@ -123,8 +123,6 @@ pub fn eliminate<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
         let Operand::Copy(place) = *arg else { bug!() };
         *arg = Operand::Move(place);
     }
-
-    crate::simplify::simplify_locals(body, tcx)
 }
 
 pub enum DeadStoreElimination {