This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Skip isZIPMask check for masks with an odd number of elements.
ClosedPublic

Authored by fhahn on Jul 29 2019, 8:47 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

fhahn created this revision.Jul 29 2019, 8:47 AM

Do we want this in any of the other other functions? isUZP_v_undef_Mask looks suspicious.

llvm/test/CodeGen/AArch64/arm64-neon-vector-shuffle-extract.ll
35 ↗(On Diff #212171)

Update checks!

fhahn updated this revision to Diff 213295.Aug 5 2019, 2:08 AM

Regenerate test checks.

fhahn marked an inline comment as done.Aug 5 2019, 2:18 AM

Do we want this in any of the other other functions? isUZP_v_undef_Mask looks suspicious.

I'm not entirely sure, but it currently probably only makes sense for vectors with even number of elements. But I don't think we get out-of-bounds errors there. However I think it would make sense to look into isUZP_v_undef_Mask independently. Also, we probably could handle that slightly better than just bailing out in the long run.

llvm/test/CodeGen/AArch64/arm64-neon-vector-shuffle-extract.ll
35 ↗(On Diff #212171)

Don, thanks!

dmgreen accepted this revision.Aug 5 2019, 3:46 AM

Sounds good to me.

This revision is now accepted and ready to land.Aug 5 2019, 3:46 AM
This revision was automatically updated to reflect the committed changes.