HomePhabricator

[CostModel] Sink intrinsic costs to base TTI.

Authored by samparker on May 21 2020, 5:13 AM.

Description

[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

Details

Committed
samparkerMay 21 2020, 5:16 AM
Differential Revision
D80012: [CostModel] Unify Intrinsic Costs.
Parents
rG259eb619ff6d: Revert "[CostModel] Unify Intrinsic Costs."
Branches
Unknown
Tags
Unknown