[CostModel] Sink intrinsic costs to base TTI.
authorSam Parker <sam.parker@arm.com>
Thu, 21 May 2020 12:13:25 +0000 (13:13 +0100)
committerSam Parker <sam.parker@arm.com>
Thu, 21 May 2020 12:16:05 +0000 (13:16 +0100)
commitb263fee4d2c9c79980775f6d4bfefa3bbda8241b
treedc632835697a04c5a5fec3aa84997c8632773e13
parent259eb619ff6dcd5b6111d1686e18559b9ca004d4
[CostModel] Sink intrinsic costs to base TTI.

Recommitting part of "[CostModel] Unify Intrinsic Costs."
de71def3f59dc9f12f67141b5040d8e15c84d08a

Move the switch statement from TTImpl::getIntrinsicCost to
TTI::getIntrinsicInstrCost. This enables BasicTTI to understand
more 'free' intrinsics instead of defaulting to a cost of 1.

Differential Revision: https://reviews.llvm.org/D80012
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h