Searched refs:Cost (Results 1 - 17 of 17) sorted by relevance

/macosx-10.10/llvmCore-3425.0.34/include/llvm/Analysis/
H A DInlineCost.h1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===//
61 const int Cost; member in class:llvm::InlineCost
67 InlineCost(int Cost, int Threshold) argument
68 : Cost(Cost), Threshold(Threshold) {}
71 static InlineCost get(int Cost, int Threshold) { argument
72 assert(Cost > AlwaysInlineCost && "Cost crosses sentinel value");
73 assert(Cost < NeverInlineCost && "Cost crosse
[all...]
/macosx-10.10/llvmCore-3425.0.34/utils/PerfectShuffle/
H A DPerfectShuffle.cpp88 unsigned Cost; // Number of instrs used to generate this value. member in struct:ShuffleVal
92 ShuffleVal() : Cost(1000000) {}
108 unsigned Cost; member in struct:Operator
112 : ShuffleMask(shufflemask), OpNum(opnum), Name(name), Cost(cost) {
125 unsigned getCost() const { return Cost; }
164 if (ShufTab[ShufTab[ThisOp].Arg0].Cost == 0) {
178 if (ShufTab[ShufTab[ThisOp].Arg1].Cost == 0) {
196 Count += ShufTab[i].Cost < 100;
202 if (ShufTab[Elt].Cost == 0) return;
210 if (ShufTab[Arg0].Cost)
[all...]
/macosx-10.10/llvmCore-3425.0.34/utils/TableGen/
H A DDAGISelEmitter.cpp43 unsigned Cost = 0; local
46 Cost++;
49 Cost += 10;
52 Cost += getResultPatternCost(P->getChild(i), CGP);
53 return Cost;
62 unsigned Cost = 0; local
65 Cost += Op->getValueAsInt("CodeSize");
68 Cost += getResultPatternSize(P->getChild(i), CGP);
69 return Cost;
/macosx-10.10/llvmCore-3425.0.34/lib/Analysis/
H A DInlineCost.cpp1 //===- InlineCost.cpp - Cost analysis for inliner -------------------------===//
51 int Cost; member in class:__anon10149::CallAnalyzer
130 : TD(TD), F(Callee), Threshold(Threshold), Cost(0),
144 int getCost() { return Cost; }
191 Cost += CostIt->second;
647 Cost += CS.arg_size() * InlineConstants::InstrCost;
652 Cost += InlineConstants::CallPenalty;
664 Cost += CS.arg_size() * InlineConstants::InstrCost;
681 Cost -= std::max(0, InlineConstants::IndirectCallThreshold - CA.getCost());
724 Cost
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/CodeGen/
H A DRegAllocGreedy.cpp156 /// Cost of evicting interference.
464 unsigned Cost = TRI->getCostPerUse(PhysReg); local
467 if (!Cost)
470 DEBUG(dbgs() << PrintReg(PhysReg, TRI) << " is available at cost " << Cost
472 unsigned CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost);
532 EvictionCost Cost; local
564 Cost.BrokenHints += 10;
569 Cost.BrokenHints += BreaksHint;
570 Cost.MaxWeight = std::max(Cost
686 addSplitConstraints(InterferenceCache::Cursor Intf, float &Cost) argument
[all...]
H A DMachineLICM.cpp208 bool CanCauseHighRegPressure(DenseMap<unsigned, int> &Cost, bool Cheap);
1070 bool MachineLICM::CanCauseHighRegPressure(DenseMap<unsigned, int> &Cost, argument
1072 for (DenseMap<unsigned, int>::iterator CI = Cost.begin(), CE = Cost.end();
1079 int Cost = CI->second; local
1088 if (RP[RCId] + Cost >= Limit)
1105 DenseMap<unsigned, int> Cost;
1117 DenseMap<unsigned, int>::iterator CI = Cost.find(RCId);
1118 if (CI != Cost.end())
1121 Cost
[all...]
H A DRegAllocFast.cpp454 unsigned Cost = 0; local
463 ++Cost;
470 Cost += I->Dirty ? spillDirty : spillClean;
475 return Cost;
518 unsigned Cost = calcSpillCost(Hint); local
519 if (Cost < spillDirty) {
520 if (Cost)
544 unsigned Cost = calcSpillCost(*I); local
546 DEBUG(dbgs() << "\tCost: " << Cost << "\n");
548 // Cost i
[all...]
/macosx-10.10/llvmCore-3425.0.34/tools/llvm-diff/
H A DDifferenceEngine.cpp480 DiffEntry() : Cost(0) {}
482 unsigned Cost; member in struct:__anon10771::DiffEntry
512 Cur[I].Cost = I * LeftCost;
520 Next[0].Cost += RightCost;
527 Next[Index].Cost += MatchCost;
530 } else if (Next[Index-1].Cost <= Cur[Index].Cost) {
532 Next[Index].Cost += LeftCost;
536 Next[Index].Cost += RightCost;
/macosx-10.10/llvmCore-3425.0.34/lib/CodeGen/SelectionDAG/
H A DScheduleDAGRRList.cpp269 unsigned &RegClass, unsigned &Cost,
283 Cost = 1;
291 // FIXME: Cost arbitrarily set to 1 because there doesn't seem to be a
293 Cost = 1;
296 Cost = TLI->getRepRegClassCostFor(VT);
1929 unsigned RCId, Cost;
1930 GetCostForDef(RegDefPos, TLI, TII, TRI, RCId, Cost, MF);
1932 if ((RegPressure[RCId] + Cost) >= RegLimit[RCId])
2043 unsigned RCId, Cost;
2044 GetCostForDef(RegDefPos, TLI, TII, TRI, RCId, Cost, M
265 GetCostForDef(const ScheduleDAGSDNodes::RegDefIter &RegDefPos, const TargetLowering *TLI, const TargetInstrInfo *TII, const TargetRegisterInfo *TRI, unsigned &RegClass, unsigned &Cost, const MachineFunction &MF) argument
[all...]
H A DScheduleDAGSDNodes.cpp113 unsigned &PhysReg, int &Cost) {
129 Cost = RC->getCopyCost();
469 int Cost = 1;
471 CheckForPhysRegDependency(OpN, N, i, TRI, TII, PhysReg, Cost);
479 if (Cost >= 0 && !StressSched)
110 CheckForPhysRegDependency(SDNode *Def, SDNode *User, unsigned Op, const TargetRegisterInfo *TRI, const TargetInstrInfo *TII, unsigned &PhysReg, int &Cost) argument
H A DTargetLowering.cpp896 uint8_t Cost; local
897 tie(RRC, Cost) = findRepresentativeClass((MVT::SimpleValueType)i);
899 RepRegClassCostForVT[i] = Cost;
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp767 /// Cost - This class is used to measure and compare candidate formulae.
768 class Cost { class in namespace:__anon10661
779 Cost() function in class:__anon10661::Cost
783 bool operator<(const Cost &Other) const;
828 void Cost::RateRegister(const SCEV *Reg,
876 void Cost::RatePrimaryRegister(const SCEV *Reg,
892 void Cost::RateFormula(const Formula &F,
940 void Cost::Loose() {
950 bool Cost::operator<(const Cost
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp1137 int Cost = 0; local
1148 ++Cost;
1155 --Cost;
1161 --Cost;
1163 if (Cost >= 0) {
H A DX86ISelLowering.cpp1431 uint8_t Cost = 1; local
1451 return std::make_pair(RRC, Cost);
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/Utils/
H A DSimplifyCFG.cpp366 unsigned Cost = ComputeSpeculationCost(I); local
368 if (Cost > CostRemaining)
371 CostRemaining -= Cost;
/macosx-10.10/llvmCore-3425.0.34/lib/Target/ARM/
H A DARMISelLowering.cpp845 uint8_t Cost = 1; local
860 Cost = 2;
865 Cost = 2;
869 Cost = 4;
873 Cost = 8;
876 return std::make_pair(RRC, Cost);
4485 unsigned Cost = (PFEntry >> 30); local
4487 if (Cost <= 4)
4714 unsigned Cost = (PFEntry >> 30); local
4716 if (Cost <
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/Target/PowerPC/
H A DPPCISelLowering.cpp4502 unsigned Cost = (PFEntry >> 30); local
4515 if (Cost < 3)

Completed in 487 milliseconds