This is an archive of the discontinued LLVM Phabricator instance.

[X86][Costmodel] Load/store i32/f32 Stride=6 VF=4 interleaving costs
ClosedPublic

Authored by lebedev.ri on Oct 4 2021, 12:02 PM.

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/szEj1ceee - for intels Block RThroughput: =15.0; for ryzens, Block RThroughput: <=8.8
So could pick cost of 15.

For store we have:
https://godbolt.org/z/81bq4fTo1 - for intels Block RThroughput: =12.0; for ryzens, Block RThroughput: <=10.0
So we could pick cost of 12.

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 4 2021, 12:02 PM
RKSimon accepted this revision.Oct 5 2021, 6:16 AM

LGTM

This revision is now accepted and ready to land.Oct 5 2021, 6:16 AM
This revision was landed with ongoing or failed builds.Oct 5 2021, 7:00 AM
This revision was automatically updated to reflect the committed changes.