From 7149bbcdc5739e4ed1fa3697c1b4d441f1d4441c Mon Sep 17 00:00:00 2001 From: SparrowLii Date: Thu, 28 Apr 2022 11:31:08 +0800 Subject: Eliminate duplication of RPO calculation for mir add `postorder_cache` to mir Body add `ReversePostorderCache` struct correct struct name and comments --- compiler/rustc_codegen_ssa/src/mir/mod.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler/rustc_codegen_ssa/src') diff --git a/compiler/rustc_codegen_ssa/src/mir/mod.rs b/compiler/rustc_codegen_ssa/src/mir/mod.rs index 6c139df0a85..0c958de64fa 100644 --- a/compiler/rustc_codegen_ssa/src/mir/mod.rs +++ b/compiler/rustc_codegen_ssa/src/mir/mod.rs @@ -244,7 +244,6 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>( fx.debug_introduce_locals(&mut bx); // Codegen the body of each block using reverse postorder - // FIXME(eddyb) reuse RPO iterator between `analysis` and this. for (bb, _) in traversal::reverse_postorder(&mir) { fx.codegen_block(bb); } -- cgit 1.4.1-3-g733a5