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 tried to handle.
| Paths 
 |  Differential  D53570  
[TTI] Add generic SK_Broadcast shuffle costs ClosedPublic Authored by RKSimon on Oct 23 2018, 6:36 AM. 
Details Summary 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 tried to handle. 
Diff Detail 
 Event TimelineComment Actions I guess no ARM/AArch64 testcases are affected because the cost would have been 1 anyway before the patch? Assuming that's the case, LGTM. This revision is now accepted and ready to land.Oct 24 2018, 1:39 PM Closed by commit rL345253: [TTI] Add generic SK_Broadcast shuffle costs (authored by RKSimon).  ·  Explain WhyOct 25 2018, 3:54 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 171057 llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h
 llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
 llvm/trunk/lib/Target/ARM/ARMTargetTransformInfo.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||