[llvm] [CostModel] Handle all cost kinds in getCmpSelInstrCost (PR #148233)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 01:35:42 PDT 2025
================
@@ -1369,8 +1369,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
int ISD = TLI->InstructionOpcodeToISD(Opcode);
assert(ISD && "Invalid opcode");
- // TODO: Handle other cost kinds.
- if (CostKind != TTI::TCK_RecipThroughput)
+ if (getTLI()->getValueType(DL, ValTy, true) == MVT::Other)
----------------
RKSimon wrote:
where does the MVT::Other case occur?
https://github.com/llvm/llvm-project/pull/148233
More information about the llvm-commits
mailing list