@@ -1154,65 +1154,6 @@ TargetTransformInfo::getInstructionLatency(const Instruction *I) const {
11541154 return TTIImpl->getInstructionLatency (I);
11551155}
11561156
1157- InstructionCost
1158- TargetTransformInfo::getInstructionThroughput (const Instruction *I) const {
1159- TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput;
1160-
1161- switch (I->getOpcode ()) {
1162- case Instruction::GetElementPtr:
1163- case Instruction::Ret:
1164- case Instruction::PHI:
1165- case Instruction::Br:
1166- case Instruction::Add:
1167- case Instruction::FAdd:
1168- case Instruction::Sub:
1169- case Instruction::FSub:
1170- case Instruction::Mul:
1171- case Instruction::FMul:
1172- case Instruction::UDiv:
1173- case Instruction::SDiv:
1174- case Instruction::FDiv:
1175- case Instruction::URem:
1176- case Instruction::SRem:
1177- case Instruction::FRem:
1178- case Instruction::Shl:
1179- case Instruction::LShr:
1180- case Instruction::AShr:
1181- case Instruction::And:
1182- case Instruction::Or:
1183- case Instruction::Xor:
1184- case Instruction::FNeg:
1185- case Instruction::Select:
1186- case Instruction::ICmp:
1187- case Instruction::FCmp:
1188- case Instruction::Store:
1189- case Instruction::Load:
1190- case Instruction::ZExt:
1191- case Instruction::SExt:
1192- case Instruction::FPToUI:
1193- case Instruction::FPToSI:
1194- case Instruction::FPExt:
1195- case Instruction::PtrToInt:
1196- case Instruction::IntToPtr:
1197- case Instruction::SIToFP:
1198- case Instruction::UIToFP:
1199- case Instruction::Trunc:
1200- case Instruction::FPTrunc:
1201- case Instruction::BitCast:
1202- case Instruction::AddrSpaceCast:
1203- case Instruction::ExtractElement:
1204- case Instruction::InsertElement:
1205- case Instruction::ExtractValue:
1206- case Instruction::ShuffleVector:
1207- case Instruction::Call:
1208- case Instruction::Switch:
1209- return getUserCost (I, CostKind);
1210- default :
1211- // We don't have any information on this instruction.
1212- return -1 ;
1213- }
1214- }
1215-
12161157TargetTransformInfo::Concept::~Concept () = default ;
12171158
12181159TargetIRAnalysis::TargetIRAnalysis () : TTICallback(&getDefaultTTI) {}
0 commit comments