Creates a new `DominatorTree`.
()
| 48 | impl DominatorTree { |
| 49 | /// Creates a new `DominatorTree`. |
| 50 | pub fn new() -> Self { |
| 51 | Self { |
| 52 | nodes: SecondaryMap::new(), |
| 53 | virtual_root_child: None.into(), |
| 54 | processed: EntitySet::new(), |
| 55 | stack: vec![], |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /// Computes the dominator tree. |
| 60 | pub fn compute(&mut self, func: &impl Function, po: &PostOrder) { |
nothing calls this directly
no outgoing calls
no test coverage detected