Skip to content

fix(native): retain FF publication from other lane tasks - #1976

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-conditional-range/retain-ff-publication-other-lane-tasks--14a726b2
Oct 25, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-conditional-range/retain-ff-publication-other-lane-tasks--14a726b2

Conversation

@tignear

@tignear tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

A lane task can update one array element while publishing another element
computed by a different task. Applying the complete-event working-memory
rewrite to that task removed the other producer's Commit, leaving a
four-stage pipeline stuck after its second stage.

Use a partial-event entry point for lane compilation. Track possibly
uninitialized access fragments through the CFG and preserve external
pending reads and publications. Retain direct updates when all paths define
the observed fragments, and keep complete-event optimization unchanged.

Carry NativeMergeKind from task construction through compilation so partial
and fused comb/FF optimization decisions are independent of diagnostic labels.
Use an exhaustive match for the working-state rewrite.

Add five optimizer regressions and a portable generate-if pipeline case
covering ascending and descending arrays with one, two and four stages.

Validation on master feba1a5, with this commit checked out alone:

  • Generate-if pipeline regression: all five backends passed.
  • Native parallel common regressions: 303 passed.
  • SIR optimizer: 473 passed, one existing ignored, plus its doctest.
  • Native image and differential scheduler regressions: 50 passed.
  • Clippy for celox-sir-opt and celox, including SV test registrations, passed.

The unchanged shared pipeline case also passed Icarus and Verilator during
validation on master 644beac; external adapters and this case are unchanged.

With the stacked SV fix, rebuilt NAPI and passed the threads E2E test
and all three runtime-event addon tests. Workspace check (excluding
lydite-celox), formatting, lint and submodule checks passed.

After replacing label-based dispatch with NativeMergeKind, 2,283 Native
regressions passed on this commit alone, including the common parallel
suite, image/differential scheduler tests and the Native SV variants.
Affected-crate clippy also passed.

@tignear

tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(native): retain FF publication from other lane tasks #1976 👈
2 fix(sv): return typed defaults for invalid unpacked array reads #1977

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T09:17:45.995361Z 58b7e66 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added merge-ready Request merging through Mergify after required checks and removed merge-ready Request merging through Mergify after required checks labels Oct 25, 2026
A lane task can update one array element while publishing another element
computed by a different task. Applying the complete-event working-memory
rewrite to that task removed the other producer's Commit, leaving a
four-stage pipeline stuck after its second stage.

Use a partial-event entry point for lane compilation. Track possibly
uninitialized access fragments through the CFG and preserve external
pending reads and publications. Retain direct updates when all paths define
the observed fragments, and keep complete-event optimization unchanged.

Carry NativeMergeKind from task construction through compilation so partial
and fused comb/FF optimization decisions are independent of diagnostic labels.
Use an exhaustive match for the working-state rewrite.

Add five optimizer regressions and a portable generate-if pipeline case
covering ascending and descending arrays with one, two and four stages.

Validation on master feba1a5, with this commit checked out alone:
- Generate-if pipeline regression: all five backends passed.
- Native parallel common regressions: 303 passed.
- SIR optimizer: 473 passed, one existing ignored, plus its doctest.
- Native image and differential scheduler regressions: 50 passed.
- Clippy for celox-sir-opt and celox, including SV test registrations, passed.

The unchanged shared pipeline case also passed Icarus and Verilator during
validation on master 644beac; external adapters and this case are unchanged.

With the stacked SV fix, rebuilt NAPI and passed the threads E2E test
and all three runtime-event addon tests. Workspace check (excluding
lydite-celox), formatting, lint and submodule checks passed.

After replacing label-based dispatch with NativeMergeKind, 2,283 Native
regressions passed on this commit alone, including the common parallel
suite, image/differential scheduler tests and the Native SV variants.
Affected-crate clippy also passed.

Change-Id: I14a726b2bd25a3b561d230855cd9bcb81dd52da2
@tignear
tignear force-pushed the stack/tignear/fix/sv-conditional-range/retain-ff-publication-other-lane-tasks--14a726b2 branch from d12d7f2 to 58b7e66 Compare October 25, 2026 09:16
@tignear

tignear commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial d12d7f2 2026-10-25 09:14 UTC
2 content d12d7f2 → 58b7e66 Replace diagnostic-label comparisons with an explicit typed native merge kind; keep labels exclusively for diagnostics and symbols. 2026-10-25 09:14 UTC

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 25, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 25, 2026
@mergify

mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 5 minutes 25 seconds in the queue, including 46 minutes 38 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • 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)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit a61e3e8 into master Oct 25, 2026
24 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-conditional-range/retain-ff-publication-other-lane-tasks--14a726b2 branch October 25, 2026 11:23
@mergify mergify Bot removed the queued Mergify queue entry label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant