Skip to content

merge queue: checking #2058 + #2061 together on master (a1d1c8a) - #2065

Closed
mergify[bot] wants to merge 5 commits into
masterfrom
mergify/merge-queue/b75ceb7f8b
Closed

mergify[bot] wants to merge 5 commits into
masterfrom
mergify/merge-queue/b75ceb7f8b

Conversation

@mergify

@mergify mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch internal-aligot-wr96fk of the changes queue, to test #2058 and #2061 before they merge into master.

What this draft tests

Mergify checks that #2058 and #2061 still pass CI on top of master. CI runs on this draft's code, built in this order:

  1. master at a1d1c8a
  2. #2058 + #2061, the pull requests of this batch, tested together as one tip

✨ Where it stands: closed

The pull request #2061 has been manually updated.

Follow the changes queue in the dashboard

What happens next

  • Mergify closes this draft.
  • #2058 is still in the queue.
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: a1d1c8ab17d74814f3f3a2651c650397ef7701d6
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2058
    scopes:
      - core
  - number: 2061
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
Required conditions to stay in the queue

tignear and others added 5 commits October 26, 2026 02:29
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
A bare `pragma was accepted by preprocessing even though IEEE 1800-2023
22.11 (Syntax 22-8) requires a pragma name. Reject active pragma directives
whose line contains only whitespace or comments. Preserve named unknown
pragmas and inactive conditional branches.

Cover EOF, whitespace, comments, a following module, inactive branches, and
error propagation through public preprocessing and parsing APIs. The official
sv-tests pragma-invalid case now passes in both state modes because it receives
the intended diagnostic. Update only its two expectation rows; all 90
preprocessing cases now pass in each mode.

Validation: celox-sv-syntax tests (126 passed), analyzer syntax tests (7 passed),
Clippy for both crates with all targets and warnings denied, formatting and
diff checks, and the official pragma-invalid case in both state modes with the
release sv_tests driver.

Change-Id: I0046a3ff7118b6fbf823c326ede552932d3af5a0
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