This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Look through copies in getPtrBaseWithConstantOffset
ClosedPublic

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

Details

Summary

We may have an SGPR->VGPR copy if a totally uniform pointer
calculation is used for a VGPR pointer operand.

Also hack around a bug in MUBUF matching which would incorrectly use
MUBUF for global when flat was requested. This should really be a
predicate on the parent pattern, but the DAG always checked this
manually inside the complex pattern.

Diff Detail

Event Timeline

arsenm created this revision.Aug 17 2020, 5:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2020, 5:34 AM
arsenm requested review of this revision.Aug 17 2020, 5:34 AM
foad accepted this revision.Aug 17 2020, 7:59 AM
This revision is now accepted and ready to land.Aug 17 2020, 7:59 AM