This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Allow G_DUP for elements smaller than 32 B.
ClosedPublic

Authored by paquette on Jun 5 2020, 6:17 PM.

Details

Summary

We select all of these via patterns now, so there's no reason to disallow this.

Update select-dup.mir to show that we correctly select the smaller types.

Diff Detail

Event Timeline

paquette created this revision.Jun 5 2020, 6:17 PM
aemerson added inline comments.Jun 8 2020, 4:09 PM
llvm/test/CodeGen/AArch64/GlobalISel/select-dup.mir
23

I would prefer that we don't delete these copies, thus relying on not deleting dead instructions (which is a bit surprising to me).

paquette updated this revision to Diff 269597.Jun 9 2020, 10:33 AM

Bring back COPY instructions to the test

aemerson accepted this revision.Jun 11 2020, 6:38 PM

LGTM.

This revision is now accepted and ready to land.Jun 11 2020, 6:38 PM
This revision was automatically updated to reflect the committed changes.