This is an archive of the discontinued LLVM Phabricator instance.

[X86][Costmodel] Load/store i64/f64 Stride=6 VF=4 interleaving costs
ClosedPublic

Authored by lebedev.ri on Oct 4 2021, 12:35 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/rc8jYxW6M - for intels Block RThroughput: =18.0; for ryzens, Block RThroughput: =6.0
So could pick cost of 18.

For store we have:
https://godbolt.org/z/9PhPEr65G - for intels Block RThroughput: =15.0; for ryzens, Block RThroughput: =6.0
So we could pick cost of 15.

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:35 PM
RKSimon accepted this revision.Oct 5 2021, 6:20 AM

LGTM

This revision is now accepted and ready to land.Oct 5 2021, 6:20 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.