Skip to content

Add trivial jump block elimination pass - #16

Merged
writemorecode merged 1 commit into
mainfrom
codex/trivial-jump-block-elimination
Feb 15, 2026
Merged

Add trivial jump block elimination pass#16
writemorecode merged 1 commit into
mainfrom
codex/trivial-jump-block-elimination

Conversation

@writemorecode

Copy link
Copy Markdown
Owner

This PR implements an IR optimization pass which removes trivial "trampoline" basic blocks from the CFG. These are blocks which contain only a single unconditional jump instruction to some other block. This pass replaces jumps to these blocks with jumps to the next block in the jump chain.

@writemorecode
writemorecode merged commit 635d684 into main Feb 15, 2026
1 check passed
@writemorecode
writemorecode deleted the codex/trivial-jump-block-elimination branch February 16, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant