This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by huangjd on Nov 9 2022, 4:39 PM.

Details

Summary

Fix https://github.com/llvm/llvm-project/issues/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

Diff Detail

Event Timeline

huangjd created this revision.Nov 9 2022, 4:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2022, 4:39 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
huangjd requested review of this revision.Nov 9 2022, 4:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2022, 4:39 PM
clin1 accepted this revision.Nov 9 2022, 11:35 PM

Works for me -- thanks for the quick fix!

This revision is now accepted and ready to land.Nov 9 2022, 11:35 PM