diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-01-17 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-01-17 22:00:41 +0100 |
| commit | 7fe68571fa22d6504b3c14303cc4389cd5a92a24 (patch) | |
| tree | d643d4d704443a72193ec60792c7a5d8a6c0ac9e /compiler/rustc_data_structures/src/graph | |
| parent | 159ba8a92c9e2fa4121f106176309521f4af87e9 (diff) | |
| download | rust-7fe68571fa22d6504b3c14303cc4389cd5a92a24.tar.gz rust-7fe68571fa22d6504b3c14303cc4389cd5a92a24.zip | |
Lazy dominator tree construction in borrowck
Motivated by the observation that sometimes constructed dominator tree was never queried.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/dominators/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs index ea2a4388b92..434291e8374 100644 --- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs +++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs @@ -268,10 +268,6 @@ pub struct Dominators<N: Idx> { } impl<Node: Idx> Dominators<Node> { - pub fn dummy() -> Self { - Self { post_order_rank: IndexVec::new(), immediate_dominators: IndexVec::new() } - } - pub fn is_reachable(&self, node: Node) -> bool { self.immediate_dominators[node].is_some() } |
