Skip to content

Commit c37a8ac

Browse files
committed
[CostModel] remove hack for intrinsic cost based on cost type
This hack seems to only have been necessary because of the constructor bug noted in 33125cf. Once again, it's hard to prove NFC, but that's the hope...
1 parent 6e54918 commit c37a8ac

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -859,11 +859,6 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
859859
case Instruction::Call: {
860860
assert(isa<IntrinsicInst>(U) && "Unexpected non-intrinsic call");
861861
auto *Intrinsic = cast<IntrinsicInst>(U);
862-
// FIXME: We shouldn't have this exception for RecipThroughput.
863-
if (CostKind == TTI::TCK_RecipThroughput) {
864-
IntrinsicCostAttributes CostAttrs(*Intrinsic);
865-
return TargetTTI->getIntrinsicInstrCost(CostAttrs, CostKind);
866-
}
867862
IntrinsicCostAttributes CostAttrs(Intrinsic->getIntrinsicID(), *CB);
868863
return TargetTTI->getIntrinsicInstrCost(CostAttrs, CostKind);
869864
}

0 commit comments

Comments
 (0)