[llvm] X86: Improve cost model of fp16 conversion (PR #113195)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 14:41:42 PDT 2024
================
@@ -3146,6 +3174,11 @@ InstructionCost X86TTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst,
TTI::CastContextHint::None, CostKind);
}
+ if (ISD == ISD::FP_ROUND && LTDest.second.getScalarType() == MVT::f16) {
+ // Conversion requires a libcall.
+ return InstructionCost::getInvalid();
----------------
JoelWee wrote:
Yes it looks like it does. Thanks! (And apologies about the bad dump)
https://github.com/llvm/llvm-project/pull/113195
More information about the llvm-commits
mailing list