This is an archive of the discontinued LLVM Phabricator instance.

[AVX2] [TTI CostModel] Add cost of interleaved loads/stores for AVX2
ClosedPublic

Authored by dorit on Jun 8 2017, 1:30 AM.

Details

Summary

The cost of an interleaved access was only implemented for AVX512. For other targets an overly conservative Base cost was returned,resulting in avoiding vectorization where it is actually profitable to vectorize. This patch starts to add costs for AVX2 for most prominent cases of interleaved accesses (stride 3,4 chars, for now).

Diff Detail

Repository
rL LLVM

Event Timeline

dorit created this revision.Jun 8 2017, 1:30 AM
delena accepted this revision.Jun 12 2017, 12:30 AM
This revision is now accepted and ready to land.Jun 12 2017, 12:30 AM
This revision was automatically updated to reflect the committed changes.