Recompute the control flow graph of `block`. This is for use after modifying instructions within a specific block. It recomputes all edges from `block` while leaving edges to `block` intact. Its functionality a subset of that of the more expensive `compute`, and should be used when we know we don't need to recompute the CFG from scratch, but rather that our changes have been restricted to specifi
(&mut self, func: &Function, block: Block)
| 142 | /// more expensive `compute`, and should be used when we know we don't need to recompute the CFG |
| 143 | /// from scratch, but rather that our changes have been restricted to specific blocks. |
| 144 | pub fn recompute_block(&mut self, func: &Function, block: Block) { |
| 145 | debug_assert!(self.is_valid()); |
| 146 | self.invalidate_block_successors(block); |
| 147 | self.compute_block(func, block); |
| 148 | } |
| 149 | |
| 150 | fn add_edge(&mut self, from: Block, from_inst: Inst, to: Block) { |
| 151 | self.data[from] |