Skip to content

Apply Tape-based liveness to Puddi IR - #29

Merged
lemonhub-io merged 1 commit into
mainfrom
tape-ir-liveness
Nov 28, 2026
Merged

lemonhub-io merged 1 commit into
mainfrom
tape-ir-liveness

Conversation

@lemonhub-io

Copy link
Copy Markdown
Member

Summary

  • Build a function-local liveness tape with stable value IDs, a flat operand table, and a separate statement schedule. Propagate demand through dead value chains without repeated full-tree scans.
  • Keep the array and index evaluation and the original bounds trap when an unused scalar read becomes an ArrayGuard. Live reads and reference-valued reads keep their existing lowering.
  • Document Joshua Tenner's Tape proposal, the Puddi adaptation, and the proof obligations for guard removal and dead arguments.

Validation

The focused integration test, tape_preserves_array_read_effects, passed on Windows via daumhost with the compiler's embedded runtime disabled. It checks dead and live bindings, the WAT guard shape, operand evaluation order, and the preserved bounds panic.

@ghfind-review ghfind-review Bot added the review: medium ghfind author score; see https://ghfind.com label Nov 28, 2026
@lemonhub-io
lemonhub-io merged commit 5704a95 into main Nov 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: medium ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant