[RISCV] Move vector cost table lookup out of the switch in getIntrinsicInstrCost...
authorCraig Topper <craig.topper@sifive.com>
Tue, 25 Oct 2022 03:30:54 +0000 (20:30 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 25 Oct 2022 03:32:22 +0000 (20:32 -0700)
commitd4dc036e70330ac205a65e4cfbc82cc1dfeda3e8
tree3f7282deaa9721b895c9e8cc572b43480775510e
parent63ed3d0eeb561aa3ede1b6006c0a1a8830b469da
[RISCV] Move vector cost table lookup out of the switch in getIntrinsicInstrCost. NFC

This allows vectors to be looked up if the switch is used for the
scalar version of an intrinsic.

Extracted from D136508.
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp