HomePhabricator

[ARM] Add CostKind to getMVEVectorCostFactor.

Authored by dmgreen on Feb 11 2021, 7:33 AM.

Description

[ARM] Add CostKind to getMVEVectorCostFactor.

This adds the CostKind to getMVEVectorCostFactor, so that it can
automatically account for CodeSize costs, where it returns a cost of 1
not the MVEFactor used for Throughput/Latency. This helps simplify the
caller code and allows us to get the codesize cost more correct in more
cases.

Details

Committed
dmgreenFeb 11 2021, 7:33 AM
Parents
rG059a335ee99e: Store the calculated constant expression value into the ConstantExpr object
Branches
Unknown
Tags
Unknown