Skip to content

[InstCombine] PR58901 - fix bug with swapping GEP of different types #7367

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 1 commit into from
Nov 11, 2022

Conversation

clin111
Copy link
Contributor

@clin111 clin111 commented Nov 11, 2022

Fix llvm/llvm-project#58901 by adding stricter check whether non-opaque GEP can be swapped. This will not affect GEP swapping optimization in the future since we are switching to opaque GEP

Reviewed By: clin1

Differential Revision: https://reviews.llvm.org/D137752

Fix llvm/llvm-project#58901 by adding stricter check whether non-opaque GEP can be swapped. This will not affect GEP swapping optimization in the future since we are switching to opaque GEP

Reviewed By: clin1

Differential Revision: https://reviews.llvm.org/D137752
@clin111 clin111 requested a review from a team as a code owner November 11, 2022 03:58
@clin111
Copy link
Contributor Author

clin111 commented Nov 11, 2022

This is a cherry-pick of:
https://reviews.llvm.org/D137752
It is intended to fix crashes related to typed pointers in several key applications.

@al42and
Copy link
Contributor

al42and commented Nov 11, 2022

Can confirm, fixes the ICE we had with GROMACS.

@AlexeySachkov
Copy link
Contributor

The failure on HIP is unrelated and reported in #8799

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.

[InstCombine] GEP-swap optimization should bitcast typed pointers
4 participants