[RISCV][TTI] Extract getConstantPoolLoadCost helper routine [nfc]
authorPhilip Reames <preames@rivosinc.com>
Tue, 28 Mar 2023 14:48:09 +0000 (07:48 -0700)
committerPhilip Reames <listmail@philipreames.com>
Tue, 28 Mar 2023 14:48:09 +0000 (07:48 -0700)
commit4b7b612c5d34e5be2a5190fd144e49336b142bf1
tree9a8b68839901b355787d820781c7b8a50889523d
parent64f69e453ed38e0dcf33dfbf98f8566327d4ad93
[RISCV][TTI] Extract getConstantPoolLoadCost helper routine [nfc]

We had 3 copies of this code, and I am about to add a fourth.
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h