We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b4b086 commit f134101Copy full SHA for f134101
compiler/rustc_middle/src/mir/basic_blocks.rs
@@ -26,7 +26,6 @@ struct Cache {
26
predecessors: OnceCell<Predecessors>,
27
switch_sources: OnceCell<SwitchSources>,
28
is_cyclic: OnceCell<bool>,
29
- postorder: OnceCell<Vec<BasicBlock>>,
30
reverse_postorder: OnceCell<Vec<BasicBlock>>,
31
dominators: OnceCell<Dominators<BasicBlock>>,
32
}
@@ -63,14 +62,6 @@ impl<'tcx> BasicBlocks<'tcx> {
63
62
})
64
65
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
/// Returns basic blocks in a reverse postorder.
75
#[inline]
76
pub fn reverse_postorder(&self) -> &[BasicBlock] {
0 commit comments