Skip to content

Commit 6b73702

Browse files
benchclaude
andcommitted
feat: add loop invariant code motion pass
Adds `licm` as the final post-lowering optimizer pass. Detects natural loops via back-edges and dominator-tree analysis, then hoists side-effect-free loop-invariant instructions into loop preheader blocks. Runs after GVN and branch_fold so redundancies are resolved before hoisting decisions are made. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bbe5dc5 commit 6b73702

2 files changed

Lines changed: 1310 additions & 2 deletions

File tree

0 commit comments

Comments
 (0)