[ARM] Increase the Scalarized cost of masked gather/scatter operations
authorDavid Green <david.green@arm.com>
Tue, 11 Apr 2023 13:49:46 +0000 (14:49 +0100)
committerDavid Green <david.green@arm.com>
Tue, 11 Apr 2023 13:49:46 +0000 (14:49 +0100)
commita39d2d50afcbe9796c5fffda86788fb51716aecb
tree5fec0d290426db4a2129925633f9a6f4ead06470
parent91105df3dfeb6c5589de987c1c1bdd3d7fe781d8
[ARM] Increase the Scalarized cost of masked gather/scatter operations

If a gather/scatter is masked and will need to be scalarized then the cost
should be higher than we currently produce. An additional cost for scalarizing
the mask, extracting i1s and branching on the result needs to be added, which
this patch gives a cost of 5.

Differential Revision: https://reviews.llvm.org/D147331
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/intrinsic-cost-kinds.ll
llvm/test/Analysis/CostModel/ARM/mve-gather-scatter-cost.ll