[RISCV][CostModel] Make VMV_S_X and VMV_X_S cost independent of LMUL (#78739)
commit7e63940f69d99c12ccc18c76e1fc6b861fd459ec
authorShih-Po Hung <shihpo.hung@sifive.com>
Tue, 23 Jan 2024 03:00:19 +0000 (23 11:00 +0800)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 03:00:19 +0000 (23 11:00 +0800)
treec4de216cde52e13741b76611b59fa32372c744cb
parent3b171cb968b3f8495b096139fc57ff6263727e40
[RISCV][CostModel] Make VMV_S_X and VMV_X_S cost independent of LMUL (#78739)

Following #77963, instructions like VMV_S_X/VMV_X_S
handle single element, so the cost don't scale with LMUL.
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/rvv-shuffle.ll
llvm/test/Analysis/CostModel/RISCV/shuffle-broadcast.ll