HomePhabricator

[CostModel] Align the cost model for intrinsics for scalable/fixed-width…

Authored by sdesmalen on Jan 25 2021, 5:59 AM.

Description

[CostModel] Align the cost model for intrinsics for scalable/fixed-width vectors.

Let getIntrinsicInstrCost call getTypeBasedIntrinsicInstrCost for scalable vectors,
similar to how this is done for fixed-width vectors, instead of falling back
on BaseT::getIntrinsicInstrCost().

If the intrinsic cannot be costed (or is not overloaded by the target),
it will return InstructionCost::getInvalid() instead.

Depends on D97469

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D97470

Details

Committed
sdesmalenMar 31 2021, 6:52 AM
Reviewer
david-arm
Differential Revision
D97470: [CostModel] Align the cost model for intrinsics for scalable/fixed-width vectors.
Parents
rGdc7ebd2cb0cf: [C++2b] Support size_t literals
Branches
Unknown
Tags
Unknown