563 B
563 B
Control Flow Analysis
Dominator
for a given CFG a node x dominates a node y if every path from the Entry block to y contains x.
- Each BB dominates itself
- If
x dom yandy dom zthenx dom z - If
x dom zandy dom zthen eitherx dom yory dom x
Dominator Tree
- initial node is a root
x dom ymeans that "yis a child ofx"
Natural Loops
How to Find Natural Loop?: Introduction Backedge
Important concepts in a loop
- Header and Loop BB
- Back Edges
- Exit Edges
- Preheader (Preloop)
Loop-Invariant Computation