This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by huangjd on May 19 2022, 4:53 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.
Removed unnecessary tests for swapping GEP with constant indices.

Fix up revision mess in D125934

Diff Detail

Event Timeline

huangjd created this revision.May 19 2022, 4:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 4:53 PM
huangjd requested review of this revision.May 19 2022, 4:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 4:53 PM
aeubanks accepted this revision.May 19 2022, 6:16 PM
This revision is now accepted and ready to land.May 19 2022, 6:16 PM

also no need to mention the previous revision in the final commit message

huangjd abandoned this revision.Jun 30 2022, 2:30 PM