diff options
| author | SparrowLii <liyuan179@huawei.com> | 2022-04-28 11:31:08 +0800 |
|---|---|---|
| committer | SparrowLii <liyuan179@huawei.com> | 2022-04-30 03:42:57 +0800 |
| commit | 7149bbcdc5739e4ed1fa3697c1b4d441f1d4441c (patch) | |
| tree | 024ec5cb2168d94eaeb7621a9e20ffcf0d4d5bc0 /compiler/rustc_codegen_ssa/src | |
| parent | c95346b8ac8f10927b4aec31e61d45c75b10ba74 (diff) | |
| download | rust-7149bbcdc5739e4ed1fa3697c1b4d441f1d4441c.tar.gz rust-7149bbcdc5739e4ed1fa3697c1b4d441f1d4441c.zip | |
Eliminate duplication of RPO calculation for mir
add `postorder_cache` to mir Body add `ReversePostorderCache` struct correct struct name and comments
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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); } |
