File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ struct Cache {
26
26
predecessors : OnceCell < Predecessors > ,
27
27
switch_sources : OnceCell < SwitchSources > ,
28
28
is_cyclic : OnceCell < bool > ,
29
- postorder : OnceCell < Vec < BasicBlock > > ,
30
29
reverse_postorder : OnceCell < Vec < BasicBlock > > ,
31
30
dominators : OnceCell < Dominators < BasicBlock > > ,
32
31
}
@@ -63,14 +62,6 @@ impl<'tcx> BasicBlocks<'tcx> {
63
62
} )
64
63
}
65
64
66
- /// Returns basic blocks in a postorder.
67
- #[ inline]
68
- pub fn postorder ( & self ) -> & [ BasicBlock ] {
69
- self . cache . postorder . get_or_init ( || {
70
- Postorder :: new ( & self . basic_blocks , START_BLOCK ) . map ( |( bb, _) | bb) . collect ( )
71
- } )
72
- }
73
-
74
65
/// Returns basic blocks in a reverse postorder.
75
66
#[ inline]
76
67
pub fn reverse_postorder ( & self ) -> & [ BasicBlock ] {
You can’t perform that action at this time.
0 commit comments