[COST] Improve shuffle kind detection if shuffle mask is provided.
authorAlexey Bataev <a.bataev@outlook.com>
Tue, 20 Apr 2021 14:05:30 +0000 (07:05 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 29 Apr 2021 16:42:56 +0000 (09:42 -0700)
commit92399322217917e67c0d72a55ec51ddc82251cf6
tree410d36df68757190ccba9f3bf55e174fe0a65a86
parent47a686d5cbcaed72fde0a859bfbc41c3c16ada27
[COST] Improve shuffle kind detection if shuffle mask is provided.

Added an extra analysis for better choosing of shuffle kind in
getShuffleCost functions for better cost estimation if mask was
provided.

Differential Revision: https://reviews.llvm.org/D100865
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/remark_extract_broadcast.ll