This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by lebedev.ri on Oct 3 2021, 7: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/zdz5Ga6fs - for intels Block RThroughput: =7.0; for ryzens, Block RThroughput: <=6.0
So pick cost of 7.

For store we have:
https://godbolt.org/z/qn71513ac - for intels Block RThroughput: =11.0; for ryzens, Block RThroughput: <=8.0
So pick cost of 11.

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, 7:17 AM
RKSimon accepted this revision.Oct 3 2021, 7:56 AM

LGTM with one minor

llvm/test/Analysis/CostModel/X86/interleaved-load-float.ll
140

Maybe remove this as a separate pre-commit as we already have interleaved-load-f32-stride-3.ll ?

This revision is now accepted and ready to land.Oct 3 2021, 7:56 AM