This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Changing constant-indexed GEP of GEP to i8* for merging
ClosedPublic

Authored by huangjd on May 18 2022, 4:05 PM.

Details

Summary

When merging GEP of GEP with constant indices, if the second GEP's offset is not divisible by the first GEP's element size, convert both type to i8* and merge.

Diff Detail

Event Timeline

huangjd created this revision.May 18 2022, 4:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 4:05 PM
huangjd requested review of this revision.May 18 2022, 4:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 4:05 PM
nikic accepted this revision.May 19 2022, 1:49 AM

LGTM

This revision is now accepted and ready to land.May 19 2022, 1:49 AM
nikic added a comment.Jun 23 2022, 8:43 AM

(I'd suggest rebasing this patch to main and landing it first.)

huangjd updated this revision to Diff 441522.Jun 30 2022, 2:25 PM

Rebasing this patch before D125845

This revision was landed with ongoing or failed builds.Jun 30 2022, 2:27 PM
This revision was automatically updated to reflect the committed changes.