Skip to content

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

4 participants