Repository navigation
gcc prompts: verify the premise of incomplete-fix findings - #984
Merged
rgushchin merged 1 commit intoDec 3, 2026
Merged
Conversation
sendaoYan
force-pushed
the
gcc-prompts-verify-incomplete-fix
branch
from
December 3, 2026 12:10
0c6e552 to
c9af7b5
Compare
Sashiko review — v2Commit 1/1 —
|
The GCC profile repeatedly reports that a fix is narrower than the IPA function summary without checking that the analysis actually proves the claimed shape dead. On PR129112 that produced one false positive per round for loop-header defaults and -fstrict-enums enumerations, although the unpatched compiler does not fail for them. Add a false-positive-guide rule and extend the mirror-the-analysis rule in review-core.md: report an incomplete-fix claim only when the other analysis actually proves the shape dead, otherwise there is no failure for the patch to leave reachable. Closes: sashiko-dev#979 Signed-off-by: Sendao Yan <yansendao@126.com>
sendaoYan
force-pushed
the
gcc-prompts-verify-incomplete-fix
branch
from
December 3, 2026 12:22
c9af7b5 to
a65e583
Compare
Sashiko review — v3✓ No issues found across 1 commit. |
Contributor
Author
|
@rgushchin Thanks for the review and merge. |
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.
The GCC profile repeatedly reports that a fix is narrower than the IPA
function summary and leaves the original failure reachable, without checking
that the analysis actually acts on the claimed shape. On PR129112 this
produced one false positive per round for loop-header defaults and
-fstrict-enumsenumerations, although the unpatched compiler does not failfor them.
Add a false-positive-guide rule and extend the mirror-the-analysis rule in
review-core.md to require the premise first: name the other analysis's exact
condition and show it holds for the claimed shape (for IPA, the predicate is
proven false and the call edge is redirected so the callee is removed while
the failing IR survives). If the premise cannot be established, it is not a
finding — a partial fix is a finding only when the original failure is
demonstrably still reachable.
Prompt-only change; the prompt bundle hash changes. Closes #979.