[TTI][CostModel] `getUserCost()`: recognize replication shuffles and query their...
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 6 Nov 2021 13:45:15 +0000 (16:45 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 6 Nov 2021 13:45:15 +0000 (16:45 +0300)
commita30ec4778a479da15f53811a1c79484078e00858
tree24d16f885b876da94d7e0d77437dc76d58ae35d9
parentf8efc5c0ac68d2f94c8f83e65798e786e2c8c8cd
[TTI][CostModel] `getUserCost()`: recognize replication shuffles and query their cost

This finally creates proper test coverage for replication shuffles,
that are used by LV for conditional loads, and will allow to add
proper costmodel at least for AVX512.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D113324
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/shuffle-replication-i8.ll