[AArch64][CostModel]: Add costs for zero/sign extend.
authorHassnaa Hamdi <hassnaa.hamdi@arm.com>
Wed, 19 Apr 2023 09:23:13 +0000 (09:23 +0000)
committerHassnaa Hamdi <hassnaa.hamdi@arm.com>
Wed, 19 Apr 2023 10:26:43 +0000 (10:26 +0000)
commit045eec61f36b8612643808e0c14b4a37184756f1
tree9afcbb35c5a6dd02cd0915670257019c3125e85c
parentad42ea33bb39cfe4b82943e464382943962eb47c
[AArch64][CostModel]: Add costs for zero/sign extend.

Add cost for extending to illegal scalable vector types.
Add testing file for the extend operations.

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D142456
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/cast.ll
llvm/test/Analysis/CostModel/AArch64/sve-ext.ll [new file with mode: 0644]
llvm/test/Analysis/CostModel/AArch64/sve-widening-instruction.ll