dillon1000/react
Commit
Browse files Implement dominator/post-dominator tree calculation
Implements an efficient algorithm for computing the dominator (or post dominator) tree of a CFG, following https://www.cs.rice.edu/~keith/Embed/dom.pdf. This is used/tested in the next PR to validate that hooks are called unconditionally. note: I clean up the implementation quite a bit late in the stack in #1584
Changed paths3 files
First-parent comparisoncompiler/forget/src/HIR/Dominator.ts AddedA compiler/forget/src/__tests__/fixtures/compiler/dominator.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/dominator.js AddedPatch
Files changed
Rendering syntax-highlighted changes…