This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add SK_Splice fixed-width costs
ClosedPublic

Authored by dmgreen on Aug 20 2022, 8:22 AM.

Details

Summary

A fixed length SK_Splice shuffle vector is lowered to a Ext undef AArch64, which should have a cost of 1.

Diff Detail

Event Timeline

dmgreen created this revision.Aug 20 2022, 8:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2022, 8:22 AM
dmgreen requested review of this revision.Aug 20 2022, 8:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2022, 8:22 AM
fhahn accepted this revision.Aug 22 2022, 2:44 AM

LGTM, thanks!

llvm/test/Analysis/CostModel/AArch64/splice.ll
32

might be good to also have a test where the cost is != 0.

This revision is now accepted and ready to land.Aug 22 2022, 2:44 AM
This revision was landed with ongoing or failed builds.Aug 22 2022, 4:45 AM
This revision was automatically updated to reflect the committed changes.