[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:28:49 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:

Do we need to cost the extend and truncate?

https://github.com/llvm/llvm-project/pull/108361


More information about the llvm-commits mailing list