[TTI] Add generic SK_Broadcast shuffle costs
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 25 Oct 2018 10:52:36 +0000 (10:52 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 25 Oct 2018 10:52:36 +0000 (10:52 +0000)
commit071e82218f505396535b2d4abcf008117feb5685
tree47618e9e3f2bfa8d42f9cb7844287f390258d0fa
parent2a9c7280886f3a0a60833bd41888a5bd07880d8b
[TTI] Add generic SK_Broadcast shuffle costs

I noticed while fixing PR39368 that we don't have generic shuffle costs for broadcast style shuffles.

This patch adds SK_BROADCAST handling, but exposes ARM/AARCH64 lack of handling of this type, which I've added a fix for at the same time.

Differential Revision: https://reviews.llvm.org/D53570

llvm-svn: 345253
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp