Skip to content

[WIP] progress on rewrite lifting#866

Draft
math-fehr wants to merge 31 commits into
mainfrom
math-fehr/wip-lifting-list
Draft

[WIP] progress on rewrite lifting#866
math-fehr wants to merge 31 commits into
mainfrom
math-fehr/wip-lifting-list

Conversation

@math-fehr

Copy link
Copy Markdown
Collaborator

This is the current status of proving the lifting between the soundness of local rewrites to module refinements

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VeIR Benchmarks

Details
Benchmark suite Current: f9991b8 Previous: 0279d19 Ratio
add-fold-worklist/create 2139000 ns (± 92614) 1856000 ns (± 92425) 1.15
add-fold-worklist/rewrite 4068000 ns (± 73918) 3608000 ns (± 49764) 1.13
add-fold-worklist-local/create 2246000 ns (± 35654) 1836000 ns (± 90886) 1.22
add-fold-worklist-local/rewrite 9471000 ns (± 104880) 2978000 ns (± 150037) 3.18
add-zero-worklist/create 2231000 ns (± 92534) 1840500 ns (± 314471) 1.21
add-zero-worklist/rewrite 2633000 ns (± 118366) 2314000 ns (± 294926) 1.14
add-zero-reuse-worklist/create 1880000 ns (± 126056) 1536000 ns (± 28249) 1.22
add-zero-reuse-worklist/rewrite 2183000 ns (± 94152) 1881000 ns (± 32407) 1.16
mul-two-worklist/create 2269000 ns (± 88874) 1848000 ns (± 91490) 1.23
mul-two-worklist/rewrite 5772000 ns (± 59703) 5035000 ns (± 89461) 1.15
add-fold-forwards/create 2253000 ns (± 112506) 1836000 ns (± 68325) 1.23
add-fold-forwards/rewrite 3026000 ns (± 74014) 2759000 ns (± 71360) 1.10
add-zero-forwards/create 2276000 ns (± 82957) 1839500 ns (± 93335) 1.24
add-zero-forwards/rewrite 2044000 ns (± 49176) 1792500 ns (± 23861) 1.14
add-zero-reuse-forwards/create 1906000 ns (± 117331) 1544000 ns (± 19799) 1.23
add-zero-reuse-forwards/rewrite 1590500 ns (± 41212) 1403000 ns (± 9633) 1.13
mul-two-forwards/create 2274000 ns (± 134952) 1846000 ns (± 77894) 1.23
mul-two-forwards/rewrite 3796000 ns (± 132053) 3292000 ns (± 54962) 1.15
add-zero-reuse-first/create 1948000 ns (± 93709) 1549500 ns (± 48362) 1.26
add-zero-reuse-first/rewrite 9000 ns (± 1614) 10000 ns (± 1776) 0.90
add-zero-lots-of-reuse-first/create 1943500 ns (± 134602) 1532000 ns (± 69515) 1.27
add-zero-lots-of-reuse-first/rewrite 831500 ns (± 72238) 797000 ns (± 34179) 1.04

This comment was automatically generated by workflow using github-action-benchmark.

@math-fehr math-fehr force-pushed the math-fehr/wip-lifting-list branch 28 times, most recently from cfce77f to 4b27368 Compare June 20, 2026 01:11
@math-fehr math-fehr force-pushed the math-fehr/wip-lifting-list branch from 4b27368 to 3bdb34f Compare June 21, 2026 15:05
math-fehr and others added 4 commits June 25, 2026 01:43
…ds fields

Add WithCreatedOps + eraseOp survival helpers (hSurviveOp/Block/Region) and use
them to discharge the bounds-preservation fields of RewrittenAt.of_fromLocalRewrite.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add hOpBnd (bidirectional non-op bounds across the rewrite) to transport ReturnOps
freshness; mappingFixesNonResults is the else-branch of rewriteMapping.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add hSurviveVal (value survival across folds + eraseOp when the value's owner is
not op) and discharge mapNonResultsInBounds via getResults! membership.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mark which fields need an extra pattern hypothesis (newValuesInBounds,
mapResultsInBounds, newValuesAreResults, newCtxDom, newCtxVerif) vs deep
operationList/GetSet plumbing through the foldlM (tgtList, otherBlocks, frame,
parentOps, blockArgsPreserved, opRegionsPreserved, regionFirstBlockPreserved).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@math-fehr math-fehr force-pushed the math-fehr/wip-lifting-list branch from 4e366e3 to d06bc74 Compare June 25, 2026 00:44
@math-fehr math-fehr force-pushed the math-fehr/wip-lifting-list branch from 2497ee7 to dd42c0b Compare June 29, 2026 04:09
@math-fehr math-fehr force-pushed the math-fehr/wip-lifting-list branch from dd42c0b to e8a1632 Compare June 30, 2026 01:16
@math-fehr math-fehr force-pushed the math-fehr/wip-lifting-list branch from e8a1632 to f45dc66 Compare June 30, 2026 01:51
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