Skip to content

[FunctionComparator] Differentiate instructions passing different MDStrings #7679

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

Conversation

NuriAmari
Copy link

@NuriAmari NuriAmari commented Oct 25, 2023

Prior to this patch, differing metadata operands to two otherwise identical instructions was not enough to consider the instructions different in the eyes of the function comparator. This breaks LLVM virtual function elimination, among other features.

In this patch, we handle the case where two associated operands are MDStrings of different value. This patch does not differentiate more complex metadata operands.

…trings (llvm#69543)

Prior to this patch, differing metadata operands to two otherwise
identical instructions was not enough to consider the instructions
different in the eyes of the function comparator. This breaks LLVM
virtual function elimination, among other features.

In this patch, we handle the case where two associated operands are
MDStrings of different value. This patch does not differentiate more
complex metadata operands.

---------

Co-authored-by: Nuri Amari <[email protected]>
@NuriAmari
Copy link
Author

I already merged this in LLVM: llvm#69543, this is just a pick from next into stable.

@NuriAmari NuriAmari marked this pull request as ready for review October 25, 2023 23:31
@aschwaighofer
Copy link

@swift-ci test

@aschwaighofer aschwaighofer merged commit 6637993 into swiftlang:stable/20230725 Oct 30, 2023
@NuriAmari NuriAmari deleted the stable-cherry-picks branch June 5, 2024 21:53
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.

2 participants