[RISCV] Fix cost of legal fixed length masked load and stores
authorPhilip Reames <preames@rivosinc.com>
Wed, 2 Nov 2022 00:19:29 +0000 (17:19 -0700)
committerPhilip Reames <listmail@philipreames.com>
Wed, 2 Nov 2022 14:24:38 +0000 (07:24 -0700)
commit73482b457e473df6affb124242c6ce9cf290ed5c
treef46d6eb45068bf71cd38b22d70c37d008f34738d
parentfcbf807b55e6c39c09574f2d0be40f58f4140fdf
[RISCV] Fix cost of legal fixed length masked load and stores

We can cost them the same way as a scalable masked load/store. By hitting the default path, we were costing them as if they were being scalarized. This is a significant over estimate.

Differential Revision: https://reviews.llvm.org/D137218
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/masked_ldst.ll