Repository navigation
Conversation
The record-writer scan could pick up a cursor store after a return or inside the fallback block. Limit the scan to the fast path and report only completed matches. Assisted-by: Codex (gpt-6.2-sol)
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.
record_writers.pycounted a matched bounds check as a record writer even when the cursor store appeared only after a return or at a forward fallback target. Stop the scan at those boundaries and count a site only if its fast path stores the updated cursor.What is in it
scripts/re/record_writers.py. Add regressions for both boundaries and document the rule.Tested
c5788f8b098e099ee45914d1b83396de23434e21and GitHub head3c891ac137177c9e76d4ce9c96ceb2016f9adcffhave the same Git tree and parent. The runs used the local commit.cargo build --workspace --lockedpassed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4reported 863 passed, 0 failed, 42 ignored.XCL_ADAPTER=nvidiaandXCL_HEAP_WINDOWS=1. The bundled title tests passed.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.python -B -m unittest discover -s scripts -p 'test_*.py'passed all 17 tests. Before the fix both synthetic listings reported one false site. After it both report zero, and the existing positive cases still report one.Regression run
Not tested
XCL_SAMPLE_*inputs were supplied.AI use
gpt-6.2-sol) investigated, wrote the change and regression test, ran the tests and drafted this description.Mirror of xcl-dev#1730 (auto-synced, do not edit).