This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by lebedev.ri on Oct 4 2021, 12:09 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/jK85GWKaK - for intels Block RThroughput: =31.0; for ryzens, Block RThroughput: <=17.0
So could pick cost of 31.

For store we have:
https://godbolt.org/z/hPWWhEEf9 - for intels Block RThroughput: =33.0; for ryzens, Block RThroughput: <=13.8
So we could pick cost of 33.

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

LGTM

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