This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Combine G_ADD of G_PTRTOINT to G_PTR_ADD
ClosedPublic

Authored by arsenm on Aug 17 2020, 5:31 AM.

Details

Summary

This produces less work for addressing mode matching. I think this is
safe since I don't think machine IR is supposed to give the same
aliasing properties as getelementptr in the IR.

Diff Detail

Event Timeline

arsenm created this revision.Aug 17 2020, 5:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2020, 5:31 AM
arsenm requested review of this revision.Aug 17 2020, 5:31 AM
aemerson accepted this revision.Aug 25 2020, 10:46 AM
This revision is now accepted and ready to land.Aug 25 2020, 10:46 AM