[RISCV] Scalarize constant stores of fixed vectors up to 32 bits
For stores of small fixed-length vector constants, we can store them with a sequence of lui/addi/sh/sw to avoid the cost of building the vector and the vsetivli toggle. Note that this only handles vectors that are 32 bits or smaller, but could be expanded to 64 bits if we know that the constant materialization cost isn't too high. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D151221
parent
4a539e26
Please register or sign in to comment