This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] WIP: Fold ptrtoint(gep null) with up to two variable indices
AbandonedPublicDraft

Authored by arichardson on Sep 22 2021, 7:00 AM.

Details

Reviewers
None
Summary

This is a follow-up to the previous changes that fold ptrtoint(gep null).

FIXME: I am not sure if folding two variable indices is beneficial (while
it removes a pointer operation it does add more instructions) or if we
should restrict it to a single variable index.

Depends on D110247

Diff Detail

Event Timeline

arichardson created this revision.Sep 22 2021, 7:00 AM
arichardson abandoned this revision.Sep 24 2021, 2:50 AM

Covered by latest version of D110247

Herald added a project: Restricted Project. · View Herald TranscriptSep 24 2021, 2:50 AM