You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backport PR27137: Fix matchSelectPattern for bitwise-not of unsigned compares - #9080
This backports llvm/llvm-project@56df0ec (rL264996) which fixes PR27137. It corrects SPF_SMIN matching in matchSelectPattern where the previous code blindly assumed the predicate was ICMP_SGT, leading to incorrect MIN/MAX matching for other predicates.
…compares
This backports llvm/llvm-project@56df0ec (rL264996)
which fixes PR27137. It corrects SPF_SMIN matching in matchSelectPattern where
the previous code blindly assumed the predicate was ICMP_SGT, leading to
incorrect MIN/MAX matching for other predicates.
Document optimizer correctness fix in release notes
lib/Analysis/ValueTracking.cpp:3395
Please add a one-sentence bug-fix entry under ### Upcoming Release in docs/ReleaseNotes.md. This changes user-visible optimizer correctness by preventing incorrect min/max folding, and CONTRIBUTING.md calls for release notes for important compiler bug fixes; the current notes do not cover this change.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The regression test is in a disabled suite, leaving the miscompile fix without automated regression coverage until an equivalent test is added to the enabled DXC suite.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because the signed-only regression leaves the unsigned-predicate guard untested despite its role in preventing incorrect folds.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approval recommended
No active review issues are reported for the targeted signed-minimum pattern fix and its regression coverage.
No open issues 🎉
Review effort: Balanced
This branch has not been deployed
No deployments
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
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.
This backports llvm/llvm-project@56df0ec (rL264996) which fixes PR27137. It corrects SPF_SMIN matching in matchSelectPattern where the previous code blindly assumed the predicate was ICMP_SGT, leading to incorrect MIN/MAX matching for other predicates.