(domtree: &'a DominatorTree)
| 46 | |
| 47 | impl<'a> EgraphBlockIter<'a> { |
| 48 | fn new(domtree: &'a DominatorTree) -> Self { |
| 49 | let mut iter = Self { |
| 50 | domtree, |
| 51 | stack: Vec::new(), |
| 52 | children: SmallVec::new(), |
| 53 | }; |
| 54 | if let Some(&root) = domtree.cfg_postorder().last() { |
| 55 | iter.stack.push(root); |
| 56 | } |
| 57 | iter |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | impl Iterator for EgraphBlockIter<'_> { |
nothing calls this directly
no test coverage detected