Skip to main content

Module loop_analysis

Module loop_analysis 

Source
Expand description

Loop detection, nesting depth, and induction variable analysis.

Detects natural loops by finding back edges in the CFG, then determines loop bodies, nesting relationships, and identifies simple induction variables for optimization.

Structsยง

LoopInfo
Result of loop analysis.
NaturalLoop
A natural loop in the CFG.