MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / recompute_block

Method recompute_block

cranelift/codegen/src/flowgraph.rs:144–148  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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]

Callers 2

branches_and_jumpsFunction · 0.80

Calls 2

compute_blockMethod · 0.80

Tested by 1

branches_and_jumpsFunction · 0.64