mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 05:36:09 +00:00

X86 target does not provide any target specific cost calculation for interleave patterns.It uses the common target-independent calculation, which gives very high numbers. As a result, the scalar version is chosen in many cases. The situation on AVX-512 is even worse, since we have 3-src shuffles that significantly reduce the cost. In this patch I calculate the cost on AVX-512. It will allow to compare interleave pattern with gather/scatter and choose a better solution (PR31426). * Shiffle-broadcast cost will be changed in Simon's upcoming patch. Differential Revision: https://reviews.llvm.org/D28118 llvm-svn: 290810
Description
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
Languages
LLVM
39.9%
C++
32.5%
C
13.5%
Assembly
9.4%
MLIR
1.4%
Other
2.8%