[llvm] [RISCV] Handle zvfhmin and zvfbfmin promotion to f32 in half arith costs (PR #108361)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 10:43:15 PDT 2024
================
@@ -1908,6 +1908,13 @@ InstructionCost RISCVTTIImpl::getArithmeticInstrCost(
return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info,
Args, CxtI);
+ // f16 with zvfhmin and bf16 will be promoted to f32.
----------------
topperc wrote:
We extend and truncate around every op. We can't fold them away as it would change the rounding.
https://github.com/llvm/llvm-project/pull/108361
More information about the llvm-commits
mailing list