This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: moreElementsVector for G_LOAD
ClosedPublic

Authored by arsenm on Jul 3 2019, 6:29 PM.

Details

Summary

AMDGPU change and test is a placeholder until a future patch with
complete handling.

Diff Detail

Event Timeline

arsenm created this revision.Jul 3 2019, 6:29 PM
arsenm updated this revision to Diff 207964.Jul 3 2019, 8:12 PM

Also store

arsenm updated this revision to Diff 208176.Jul 5 2019, 7:23 AM

Fix store

arsenm updated this revision to Diff 208825.Jul 9 2019, 3:13 PM

Add a comment on G_LOAD extload behavior

The bit that's here LGTM. Is there another patch that implements moreElementsVectorSrc/moreElementsVectorDst?

include/llvm/Target/GenericOpcodes.td
728–732

Thanks for adding this.

lib/CodeGen/GlobalISel/LegalizerHelper.cpp
2706–2707

Shouldn't we defend against this for the G_STORE case too?

arsenm marked an inline comment as done.Jul 12 2019, 5:43 PM

The bit that's here LGTM. Is there another patch that implements moreElementsVectorSrc/moreElementsVectorDst?

Those have been around for a while, since around r354345

lib/CodeGen/GlobalISel/LegalizerHelper.cpp
2706–2707

Probably, although I'm not sure it makes sense to ever legalize the pointer operand

arsenm updated this revision to Diff 210407.Jul 17 2019, 1:48 PM

Check type idx for store

This revision is now accepted and ready to land.Jul 31 2019, 11:43 AM
arsenm closed this revision.Jul 31 2019, 6:43 PM

r367503