[llvm] [RISCV] Fix missing scaling by LMUL in cost model (PR #73342)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 21:29:10 PST 2023
================
@@ -1417,10 +1418,10 @@ InstructionCost RISCVTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
// vmandn.mm v8, v8, v9
// vmand.mm v9, v0, v9
// vmor.mm v0, v9, v8
- return LT.first * 3;
+ return LT.first * TLI->getLMULCost(LT.second) * 3;
----------------
topperc wrote:
These are mask instructions they don't scale with LMUL. They are at most VLEN bits wide
https://github.com/llvm/llvm-project/pull/73342
More information about the llvm-commits
mailing list