| /minix3/external/bsd/llvm/dist/llvm/test/Analysis/CostModel/X86/ |
| H A D | alternate-shuffle-cost.ll | 18 ; CHECK: Printing analysis 'Cost Model Analysis' for function 'test_v2i32': 19 ; SSE2: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector 20 ; SSSE3: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector 21 ; SSE41: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector 22 ; AVX: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector 23 ; AVX2: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector 29 ; CHECK: Printing analysis 'Cost Model Analysis' for function 'test_v2f32': 30 ; SSE2: Cost Model: {{.*}} 2 for instruction: %1 = shufflevector 31 ; SSSE3: Cost Model: {{.*}} 2 for instruction: %1 = shufflevector 32 ; SSE41: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector [all …]
|
| H A D | vselect-cost.ll | 13 ; CHECK: Printing analysis 'Cost Model Analysis' for function 'test_2i64': 14 ; SSE2: Cost Model: {{.*}} 4 for instruction: %sel = select <2 x i1> 15 ; SSE41: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1> 16 ; AVX: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1> 17 ; AVX2: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1> 23 ; CHECK: Printing analysis 'Cost Model Analysis' for function 'test_2double': 24 ; SSE2: Cost Model: {{.*}} 3 for instruction: %sel = select <2 x i1> 25 ; SSE41: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1> 26 ; AVX: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1> 27 ; AVX2: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1> [all …]
|
| H A D | intrinsic-cost.ll | 24 ; CORE2: Printing analysis 'Cost Model Analysis' for function 'test1': 25 ; CORE2: Cost Model: Found an estimated cost of 400 for instruction: %2 = call <4 x float> @llvm.… 27 ; COREI7: Printing analysis 'Cost Model Analysis' for function 'test1': 28 ; COREI7: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <4 x float> @llvm.c… 52 ; CORE2: Printing analysis 'Cost Model Analysis' for function 'test2': 53 ; CORE2: Cost Model: Found an estimated cost of 400 for instruction: %2 = call <4 x float> @llvm.… 55 ; COREI7: Printing analysis 'Cost Model Analysis' for function 'test2': 56 ; COREI7: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <4 x float> @llvm.n… 80 ; CORE2: Printing analysis 'Cost Model Analysis' for function 'test3': 81 ; CORE2: Cost Model: Found an estimated cost of 4 for instruction: %2 = call <4 x float> @llvm.fmul… [all …]
|
| H A D | vdiv-cost.ll | 8 ; CHECK: 'Cost Model Analysis' for function 'test1': 17 ; CHECK: 'Cost Model Analysis' for function 'test2': 26 ; CHECK: 'Cost Model Analysis' for function 'test3': 35 ; CHECK: 'Cost Model Analysis' for function 'test4': 44 ; CHECK: 'Cost Model Analysis' for function 'test5': 53 ; CHECK: 'Cost Model Analysis' for function 'test6': 62 ; CHECK: 'Cost Model Analysis' for function 'test7': 71 ; CHECK: 'Cost Model Analysis' for function 'test8': 80 ; CHECK: 'Cost Model Analysis' for function 'test9': 89 ; CHECK: 'Cost Model Analysis' for function 'test10':
|
| H A D | vshift-cost.ll | 16 ; CHECK: 'Cost Model Analysis' for function 'test1': 24 ; CHECK: 'Cost Model Analysis' for function 'test2': 37 ; CHECK: 'Cost Model Analysis' for function 'test3': 48 ; CHECK: 'Cost Model Analysis' for function 'test4': 64 ; CHECK: 'Cost Model Analysis' for function 'test5': 88 ; CHECK: 'Cost Model Analysis' for function 'test6': 103 ; CHECK: 'Cost Model Analysis' for function 'test7': 119 ; CHECK: 'Cost Model Analysis' for function 'test8': 132 ; CHECK: 'Cost Model Analysis' for function 'test9': 145 ; CHECK: 'Cost Model Analysis' for function 'test10': [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/utils/PerfectShuffle/ |
| H A D | PerfectShuffle.cpp | 88 unsigned Cost; // Number of instrs used to generate this value. member 92 ShuffleVal() : Cost(1000000) {} in ShuffleVal() 108 unsigned Cost; member 112 : ShuffleMask(shufflemask), OpNum(opnum), Name(name), Cost(cost) { in Operator() 125 unsigned getCost() const { return Cost; } in getCost() 164 if (ShufTab[ShufTab[ThisOp].Arg0].Cost == 0) { in PrintOperation() 178 if (ShufTab[ShufTab[ThisOp].Arg1].Cost == 0) { in PrintOperation() 196 Count += ShufTab[i].Cost < 100; in getNumEntered() 202 if (ShufTab[Elt].Cost == 0) return; in EvaluateOps() 210 if (ShufTab[Arg0].Cost) in EvaluateOps() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | InlineCost.h | 58 const int Cost; variable 64 InlineCost(int Cost, int Threshold) : Cost(Cost), Threshold(Threshold) {} in InlineCost() argument 67 static InlineCost get(int Cost, int Threshold) { in get() argument 68 assert(Cost > AlwaysInlineCost && "Cost crosses sentinel value"); in get() 69 assert(Cost < NeverInlineCost && "Cost crosses sentinel value"); in get() 70 return InlineCost(Cost, Threshold); in get() 81 return Cost < Threshold; 84 bool isAlways() const { return Cost == AlwaysInlineCost; } in isAlways() 85 bool isNever() const { return Cost == NeverInlineCost; } in isNever() 92 return Cost; in getCost()
|
| /minix3/external/bsd/llvm/dist/llvm/utils/TableGen/ |
| H A D | DAGISelEmitter.cpp | 45 unsigned Cost = 0; in getResultPatternCost() local 48 Cost++; in getResultPatternCost() 51 Cost += 10; in getResultPatternCost() 54 Cost += getResultPatternCost(P->getChild(i), CGP); in getResultPatternCost() 55 return Cost; in getResultPatternCost() 64 unsigned Cost = 0; in getResultPatternSize() local 67 Cost += Op->getValueAsInt("CodeSize"); in getResultPatternSize() 70 Cost += getResultPatternSize(P->getChild(i), CGP); in getResultPatternSize() 71 return Cost; in getResultPatternSize()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86TargetTransformInfo.cpp | 201 unsigned Cost = in getArithmeticInstrCost() local 205 Cost += getArithmeticInstrCost(Instruction::LShr, Ty, Op1Info, Op2Info, in getArithmeticInstrCost() 208 Cost += getArithmeticInstrCost(Instruction::Add, Ty, Op1Info, Op2Info, in getArithmeticInstrCost() 212 return Cost; in getArithmeticInstrCost() 227 return LT.first * AVX2UniformConstCostTable[Idx].Cost; in getArithmeticInstrCost() 277 return LT.first * AVX512CostTable[Idx].Cost; in getArithmeticInstrCost() 290 return LT.first * AVX2CostTable[Idx].Cost; in getArithmeticInstrCost() 326 return LT.first * SSE2UniformConstCostTable[Idx].Cost; in getArithmeticInstrCost() 388 return LT.first * SSE2CostTable[Idx].Cost; in getArithmeticInstrCost() 421 return LT.first * AVX1CostTable[Idx].Cost; in getArithmeticInstrCost() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/ |
| H A D | RegisterClassInfo.cpp | 103 unsigned Cost = TRI->getCostPerUse(PhysReg); in compute() local 104 MinCost = std::min(MinCost, Cost); in compute() 110 if (Cost != LastCost) in compute() 113 LastCost = Cost; in compute() 122 unsigned Cost = TRI->getCostPerUse(PhysReg); in compute() local 123 if (Cost != LastCost) in compute() 126 LastCost = Cost; in compute()
|
| H A D | BasicTargetTransformInfo.cpp | 267 unsigned Cost = 0; in getScalarizationOverhead() local 271 Cost += TopTTI->getVectorInstrCost(Instruction::InsertElement, Ty, i); in getScalarizationOverhead() 273 Cost += TopTTI->getVectorInstrCost(Instruction::ExtractElement, Ty, i); in getScalarizationOverhead() 276 return Cost; in getScalarizationOverhead() 326 unsigned Cost = TopTTI->getArithmeticInstrCost(Opcode, Ty->getScalarType()); in getArithmeticInstrCost() local 329 return getScalarizationOverhead(Ty, true, true) + Num * Cost; in getArithmeticInstrCost() 338 unsigned Cost = 0; in getAltShuffleOverhead() local 347 Cost += TopTTI->getVectorInstrCost(Instruction::InsertElement, Ty, i); in getAltShuffleOverhead() 348 Cost += TopTTI->getVectorInstrCost(Instruction::ExtractElement, Ty, i); in getAltShuffleOverhead() 350 return Cost; in getAltShuffleOverhead() [all …]
|
| H A D | MachineLICM.cpp | 211 bool CanCauseHighRegPressure(DenseMap<unsigned, int> &Cost, bool Cheap); 1070 bool MachineLICM::CanCauseHighRegPressure(DenseMap<unsigned, int> &Cost, in CanCauseHighRegPressure() argument 1072 for (DenseMap<unsigned, int>::iterator CI = Cost.begin(), CE = Cost.end(); in CanCauseHighRegPressure() 1079 int Cost = CI->second; in CanCauseHighRegPressure() local 1088 if (RP[RCId] + Cost >= Limit) in CanCauseHighRegPressure() 1105 DenseMap<unsigned, int> Cost; in UpdateBackTraceRegPressure() local 1117 DenseMap<unsigned, int>::iterator CI = Cost.find(RCId); in UpdateBackTraceRegPressure() 1118 if (CI != Cost.end()) in UpdateBackTraceRegPressure() 1121 Cost.insert(std::make_pair(RCId, RCCost)); in UpdateBackTraceRegPressure() 1123 DenseMap<unsigned, int>::iterator CI = Cost.find(RCId); in UpdateBackTraceRegPressure() [all …]
|
| H A D | RegAllocGreedy.cpp | 619 unsigned Cost = TRI->getCostPerUse(PhysReg); in tryAssign() local 622 if (!Cost) in tryAssign() 625 DEBUG(dbgs() << PrintReg(PhysReg, TRI) << " is available at cost " << Cost in tryAssign() 627 unsigned CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost); in tryAssign() 718 EvictionCost Cost; in canEvictInterference() local 750 Cost.BrokenHints += 10; in canEvictInterference() 755 Cost.BrokenHints += BreaksHint; in canEvictInterference() 756 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight); in canEvictInterference() 758 if (!(Cost < MaxCost)) in canEvictInterference() 774 MaxCost = Cost; in canEvictInterference() [all …]
|
| H A D | RegAllocFast.cpp | 475 unsigned Cost = 0; in calcSpillCost() local 482 ++Cost; in calcSpillCost() 489 Cost += I->Dirty ? spillDirty : spillClean; in calcSpillCost() 494 return Cost; in calcSpillCost() 537 unsigned Cost = calcSpillCost(Hint); in allocVirtReg() local 538 if (Cost < spillDirty) { in allocVirtReg() 539 if (Cost) in allocVirtReg() 563 unsigned Cost = calcSpillCost(*I); in allocVirtReg() local 565 DEBUG(dbgs() << "\tCost: " << Cost << "\n"); in allocVirtReg() 568 if (Cost == 0) { in allocVirtReg() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 180 unsigned Cost = 0; in getIntImmCost() local 184 Cost += getIntImmCost(Val); in getIntImmCost() 187 return std::max(1U, Cost); in getIntImmCost() 248 unsigned Cost = AArch64TTI::getIntImmCost(Imm, Ty); in getIntImmCost() local 249 return (Cost <= NumConstants * TCC_Basic) in getIntImmCost() 250 ? static_cast<unsigned>(TCC_Free) : Cost; in getIntImmCost() 276 unsigned Cost = AArch64TTI::getIntImmCost(Imm, Ty); in getIntImmCost() local 277 return (Cost <= NumConstants * TCC_Basic) in getIntImmCost() 278 ? static_cast<unsigned>(TCC_Free) : Cost; in getIntImmCost() 381 return ConversionTbl[Idx].Cost; in getCastInstrCost() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Analysis/IPA/ |
| H A D | InlineCost.cpp | 61 int Cost; member in __anone2367e770111::CallAnalyzer 150 : DL(DL), TTI(TTI), ACT(ACT), F(Callee), Threshold(Threshold), Cost(0), in CallAnalyzer() 164 int getCost() { return Cost; } in getCost() 210 Cost += CostIt->second; in disableSROA() 756 Cost += CS.arg_size() * InlineConstants::InstrCost; in visitCallSite() 761 Cost += InlineConstants::CallPenalty; in visitCallSite() 773 Cost += CS.arg_size() * InlineConstants::InstrCost; in visitCallSite() 790 Cost -= std::max(0, InlineConstants::IndirectCallThreshold - CA.getCost()); in visitCallSite() 837 Cost += (SuccessorBlocks.size() - 1) * InlineConstants::InstrCost; in visitSwitchInst() 918 Cost += InlineConstants::InstrCost; in analyzeBlock() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 81 void addUser(Instruction *Inst, unsigned Idx, unsigned Cost) { in addUser() 82 CumulativeCost += Cost; in addUser() 275 unsigned Cost; in collectConstantCandidates() local 279 Cost = TTI->getIntImmCost(IntrInst->getIntrinsicID(), Idx, in collectConstantCandidates() 282 Cost = TTI->getIntImmCost(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates() 286 if (Cost > TargetTransformInfo::TCC_Basic) { in collectConstantCandidates() 294 ConstCandVec[Itr->second].addUser(Inst, Idx, Cost); in collectConstantCandidates() 297 << " with cost " << Cost << '\n'; in collectConstantCandidates() 301 << Cost << '\n'; in collectConstantCandidates()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 202 return LT.first * NEONFltDblTbl[Idx].Cost; in getCastInstrCost() 294 return NEONVectorConversionTbl[Idx].Cost; in getCastInstrCost() 325 return NEONFloatConversionTbl[Idx].Cost; in getCastInstrCost() 357 return NEONIntegerConversionTbl[Idx].Cost; in getCastInstrCost() 377 return ARMIntegerConversionTbl[Idx].Cost; in getCastInstrCost() 427 return NEONVectorSelectTbl[Idx].Cost; in getCmpSelInstrCost() 478 return LT.first * NEONShuffleTbl[Idx].Cost; in getShuffleCost() 503 return LT.first * NEONAltShuffleTbl[Idx].Cost; in getShuffleCost() 565 return LT.first * CostTbl[Idx].Cost; in getArithmeticInstrCost() 567 unsigned Cost = TargetTransformInfo::getArithmeticInstrCost( in getArithmeticInstrCost() local [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/Target/ |
| H A D | CostTable.h | 25 unsigned Cost; member 53 unsigned Cost; member
|
| /minix3/external/bsd/llvm/dist/llvm/test/Analysis/CostModel/ARM/ |
| H A D | gep.ll | 7 ; Cost of scalar integer geps should be one. We can't always expect it to be 19 ; Cost of scalar floating point geps should be one. We cannot fold the address 27 ; Cost of vector geps should be one. We cannot fold the address computation.
|
| /minix3/external/bsd/llvm/dist/llvm/tools/llvm-diff/ |
| H A D | DifferenceEngine.cpp | 476 DiffEntry() : Cost(0) {} in DiffEntry() 478 unsigned Cost; member 508 Cur[I].Cost = I * LeftCost; in runBlockDiff() 516 Next[0].Cost += RightCost; in runBlockDiff() 523 Next[Index].Cost += MatchCost; in runBlockDiff() 526 } else if (Next[Index-1].Cost <= Cur[Index].Cost) { in runBlockDiff() 528 Next[Index].Cost += LeftCost; in runBlockDiff() 532 Next[Index].Cost += RightCost; in runBlockDiff()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 401 unsigned Cost = in getMemoryOpCost() local 407 return Cost; in getMemoryOpCost() 420 Cost += LT.first*(SrcBytes/Alignment-1); in getMemoryOpCost() 427 Cost += getVectorInstrCost(Instruction::ExtractElement, Src, i); in getMemoryOpCost() 430 return Cost; in getMemoryOpCost()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 1714 int Cost = 0; in getSpillCost() local 1757 Cost += TTI->getCostOfKeepingLiveOverCall(V); in getSpillCost() 1766 DEBUG(dbgs() << "SLP: SpillCost=" << Cost << "\n"); in getSpillCost() 1767 return Cost; in getSpillCost() 1771 int Cost = 0; in getTreeCost() local 1789 Cost += C; in getTreeCost() 1811 Cost += getSpillCost(); in getTreeCost() 1813 DEBUG(dbgs() << "SLP: Total Cost " << Cost + ExtractCost<< ".\n"); in getTreeCost() 1814 return Cost + ExtractCost; in getTreeCost() 1818 int Cost = 0; in getGatherCost() local [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Analysis/ |
| H A D | CostModel.cpp | 528 unsigned Cost = getInstructionCost(Inst); in print() local 529 if (Cost != (unsigned)-1) in print() 530 OS << "Cost Model: Found an estimated cost of " << Cost; in print()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | ScheduleDAGRRList.cpp | 279 unsigned &RegClass, unsigned &Cost, in GetCostForDef() argument 293 Cost = 1; in GetCostForDef() 302 Cost = 1; in GetCostForDef() 312 Cost = 1; in GetCostForDef() 315 Cost = TLI->getRepRegClassCostFor(VT); in GetCostForDef() 1962 unsigned RCId, Cost; in HighRegPressure() local 1963 GetCostForDef(RegDefPos, TLI, TII, TRI, RCId, Cost, MF); in HighRegPressure() 1965 if ((RegPressure[RCId] + Cost) >= RegLimit[RCId]) in HighRegPressure() 2076 unsigned RCId, Cost; in scheduledNode() local 2077 GetCostForDef(RegDefPos, TLI, TII, TRI, RCId, Cost, MF); in scheduledNode() [all …]
|