This is an archive of the discontinued LLVM Phabricator instance.

[X86][Costmodel] Load/store i8 Stride=6 VF=32 interleaving costs
ClosedPublic

Authored by lebedev.ri on Oct 3 2021, 5:17 AM.

Details

Summary

The only sched models that for cpu's that support avx2
but not avx512 are: haswell, broadwell, skylake, zen1-3

For load we have:
https://godbolt.org/z/c1jjKqP7b - for intels Block RThroughput: <=82.0; for ryzens, Block RThroughput: <=26.0
So pick cost of 82.

For store we have:
https://godbolt.org/z/YM4ErY8x7 - for intels Block RThroughput: <=90.0; for ryzens, Block RThroughput: <=25.5
So pick cost of 90.

I'm directly using the shuffling asm the llc produced,
without any manual fixups that may be needed
to ensure sequential execution.

Diff Detail

Event Timeline

lebedev.ri created this revision.Oct 3 2021, 5:17 AM
RKSimon accepted this revision.Oct 3 2021, 11:20 AM

LGTM

This revision is now accepted and ready to land.Oct 3 2021, 11:20 AM
lebedev.ri added a comment.EditedOct 3 2021, 12:07 PM

LGTM

Thank you for the reviews!