[CostModel] Unify Shuffle and InsertElement Costs
authorSam Parker <sam.parker@arm.com>
Tue, 9 Jun 2020 08:04:53 +0000 (09:04 +0100)
committerSam Parker <sam.parker@arm.com>
Wed, 10 Jun 2020 08:13:34 +0000 (09:13 +0100)
commit09d30cb977c09b08ec15189986220279f5ba09b3
tree9bbb1cb82baac8c5cc38896b8cc8cec8791322aa
parentfa8bff0cd1ad28b78a8910ebb1be077ef010f91f
[CostModel] Unify Shuffle and InsertElement Costs

Extract the existing code from getInstructionThroughput into
TTImpl::getUserCost. The duplicated code in the AMDGPU backend has
also been removed.

Differential Revision: https://reviews.llvm.org/D81448
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
llvm/test/CodeGen/SystemZ/splitMove_undefReg_mverifier.ll