Skip to content

PR for llvm/llvm-project#63019 #465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2023
Merged

PR for llvm/llvm-project#63019 #465

merged 2 commits into from
Jun 1, 2023

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Jun 1, 2023

nikic added 2 commits June 1, 2023 07:04
(cherry picked from commit 4d64ffa)
Comparison between two AliasResults implicitly decayed to comparison
of AliasResult::Kind. As a result, MergeAliasResults() ended up
considering two PartialAlias results with different offsets as
equivalent.

Fix this by adding an operator== implementation. To stay
compatible with extensive use of comparisons between AliasResult
and AliasResult::Kind, add an overload for that as well, which
will ignore the offset. In the future, it would probably be a
good idea to remove these implicit decays to AliasResult::Kind
and add dedicated methods to check for specific AliasResult kinds.

Fixes llvm/llvm-project#63019.

(cherry picked from commit 97f0e7b)
@tstellar tstellar merged commit 42f2e6e into release/16.x Jun 1, 2023
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.

Invalid optimization around loops
3 participants