Skip to content

feat: fuse affine and map pipeline stages - #1180

Merged
godofecht merged 3 commits into
mainfrom
codex/686-multiblock-inline
Oct 2, 2026
Merged

godofecht merged 3 commits into
mainfrom
codex/686-multiblock-inline

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • Compose adjacent map and scale stages into one map lambda.
  • Compose adjacent map and offset stages into one map lambda.
  • Compose the reverse affine and map order as one map lambda.
  • Preserve the existing one-expression lambda safety boundary.
  • Add regression coverage for both directions.
  • Regenerate the Stage-A bootstrap C in a separate commit.

Closes #686

Verification

  • ./flow run tests/lang/test_pipeline_fusion.flow
  • ./compiler/scripts/bootstrap_from_c.sh --verify
  • ./flow tool tests/fir/run.flow
  • ./flow tool compiler/scripts/self_host_full.flow

@godofecht
godofecht merged commit d00f387 into main Oct 2, 2026
34 checks passed
@godofecht
godofecht deleted the codex/686-multiblock-inline branch October 12, 2026 23:02
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.

FIR-G: apply dead-code elimination, constant folding, inlining and general pipeline fusion (candidates are only reported today)

1 participant