[llvm] [RISCV][CostModel] Updates reduction and shuffle cost (PR #77342)
Shih-Po Hung via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 08:07:55 PST 2024
================
@@ -84,8 +84,12 @@ RISCVTTIImpl::getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT,
Cost += VL;
break;
}
+ case RISCV::VMV_X_S:
+ case RISCV::VFMV_F_S:
case RISCV::VMV_S_X:
- // FIXME: VMV_S_X doesn't use LMUL, the cost should be 1
+ case RISCV::VFMV_S_F:
+ Cost += 1;
+ break;
----------------
arcbbb wrote:
Sure, I split it in #78739. will update this PR after that.
https://github.com/llvm/llvm-project/pull/77342
More information about the llvm-commits
mailing list