[RISCV] Rename getVectorImmCost to getStoreImmCost [nfc]
authorPhilip Reames <preames@rivosinc.com>
Tue, 27 Sep 2022 15:20:49 +0000 (08:20 -0700)
committerPhilip Reames <listmail@philipreames.com>
Tue, 27 Sep 2022 15:22:13 +0000 (08:22 -0700)
commit77b202f974faa82679d9984aeef58355dc80ba80
treeb18d79098c411c75f46a86f3ed42c43c4829263b
parent4db3a649ea79966ed7ab297a381d27fbbb6b6f7a
[RISCV] Rename getVectorImmCost to getStoreImmCost [nfc]

My original intent had been to reuse this for arithmetic instructions as well, but due to the availability of a immediate splat encoding there, we will need different heuristics.  So specialize the existing code for the store case.
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h