Repository navigation
merge queue: checking #2066 on master (a1d1c8a), stacked on #2058 - #2070
Closed
mergify[bot] wants to merge 5 commits into
Closed
mergify[bot] wants to merge 5 commits into
mergify[bot] wants to merge 5 commits into
Conversation
Change-Id: I9dc1f7023336a74e02ed52bfe8eb1a0a438d3993
…ng clobbers The reload-recipe analysis derived a query-specific view of one whole-memory SSA graph by walking it and folding every MemoryPhi whose inputs agreed for the query. Folding is not well defined on cycles: a phi whose inputs were all still on the walk stack was kept as a version of its own, so a join inside a loop became a distinct version although nothing in the loop wrote the queried bytes, and the result depended on where the walk started. The in-session reuse of such results and the per-(load, start) clobber cache then froze whichever answer came first in dominator order. The spill planner's probe function and the final MIR query different points in a different order, so their certificates differed on identical memory states and materialization failed with RELOAD_RECIPE.STATE_SNAPSHOT_CURRENT (#2041, #2044). celox-analysis gains `memory_versions`: the minimal SSA of every elementary byte range, built directly. A phi for a range is placed exactly at the iterated dominance frontier of the range's writes, with live-on-entry as the root definition, so every phi merges two different reaching versions on any CFG, including irreducible ones, and the version of every byte at every point is a canonical function of the program. Renaming runs once over the dominator tree with a persistent range-assign tree: O((W + F) log A) nodes for W write ranges, F phi ranges and A atoms, and a query costs O(k log A) for k result segments, replacing walks that were O(queries x definitions) or, with the clobber memo, Θ(ranges x accesses) memory. Reload snapshots become per-byte segment maps that reference the function's phi equations, interned once per function as pieces with one input tuple each; snapshots with equal roots share one allocation. The final-MIR verifier compares snapshots run by run with the same ordinal shifting and factoring inlining as before. The clobber walker stays in celox-analysis as a published API and test oracle, without the memo of #1997 and its budget of #2037, which no client uses any more; its module docs record the divergence. Tests: random CFGs with loops, nested loops, irreducible cycles, overlapping ranges and unknown writes against one sparse SSA per atom; random acyclic CFGs against the clobber walker's snapshot equality, where it is exact; the #2041 loop shape as a documented divergence; and the #2044 derived-edge repro. Closes #2041, closes #2044. Change-Id: I2badec66e4eea726e39282d6f994151cdd87e4d2
Constant folding passes values through literal strings: typed constants are substituted as sized literals and every literal is parsed again with big-integer arithmetic. On rtlmeter C906, evaluating constant expressions took about a tenth of the frontend. Literals of plain digits whose value fits in 128 bits, the form constant substitution writes, are now parsed with machine integers; other literals keep the general parser. Evaluating with types copies and substitutes the expression only when it names a typed constant, since substitution changes nothing else. Refs #1993 Change-Id: Ia0b236b14e15e4077bba958ce05f230504f70ab3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch notable-ossau-kjv4nw of the
changesqueue, to test #2066 before it merges intomaster. Pushing to this branch or closing this pull request removes #2066 from the queue.What this draft tests
Mergify checks that #2066 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterata1d1c8a7d18a63The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the pull request ahead, so a failure here can come from it as much as from #2066. See only this batch's changes.
Queued ahead of this batch
This pull request entered the queue before this batch and is not part of it.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationmaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-success = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-success = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holdbase ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-skipped = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-skipped = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleQueue graph
The diagram is not laid out in queue order, so a node's position says nothing about when it merges.
graph LR 4feb9de77ffa4669b61961b3dcf751b5["notable-ossau-kjv4nw<br/>#2066<br/>scopes: core"] 874625121864490aa9b0377ae89306fc["wired-souffle-ta4ayt<br/>#2061 + #2067<br/>scopes: core"] 4feb9de77ffa4669b61961b3dcf751b5 --> 874625121864490aa9b0377ae89306fc style 4feb9de77ffa4669b61961b3dcf751b5 fill:#6366f1,color:#fff