Fixing CFG to remove unreachable blocks and properly maintain dominators.

This commit is contained in:
Ben Vanik
2015-06-07 15:14:14 -07:00
parent 10e8d0bd9b
commit 889f29c18a
4 changed files with 116 additions and 5 deletions

View File

@@ -60,6 +60,9 @@ class HIRBuilder {
void ResetLabelTags();
void AddEdge(Block* src, Block* dest, uint32_t flags);
void RemoveEdge(Block* src, Block* dest);
void RemoveEdge(Edge* edge);
void RemoveBlock(Block* block);
void MergeAdjacentBlocks(Block* left, Block* right);
// static allocations: