This is an archive of the discontinued LLVM Phabricator instance.

[X86][Costmodel] `getReplicationShuffleCost()`: implement cost model for 8 bit-wide elements with AVX512VBMI
ClosedPublic

Authored by lebedev.ri on Nov 9 2021, 3:40 AM.

Details

Summary

VBMI introduced VPERMB, so cost-model i8 replication shuffle using it.
Note that we can still model i8 replication shufflle without VBMI,
by promoting to i16/i32. That will be done in follow-ups.

Diff Detail

Event Timeline

lebedev.ri created this revision.Nov 9 2021, 3:40 AM

Rebased, NFC.

@RKSimon i assume this one is fine too?

This revision is now accepted and ready to land.Nov 10 2021, 11:47 AM

LGTM

Thank you for the review!
Next up - promotion.

This revision was landed with ongoing or failed builds.Nov 10 2021, 11:54 AM
This revision was automatically updated to reflect the committed changes.