Lines Matching refs:CostIt

134                             DenseMap<Value *, int>::iterator &CostIt);
135 void disableSROA(DenseMap<Value *, int>::iterator CostIt);
137 void accumulateSROACost(DenseMap<Value *, int>::iterator CostIt,
250 Value *V, Value *&Arg, DenseMap<Value *, int>::iterator &CostIt) { in lookupSROAArgAndCost() argument
259 CostIt = SROAArgCosts.find(Arg); in lookupSROAArgAndCost()
260 return CostIt != SROAArgCosts.end(); in lookupSROAArgAndCost()
267 void CallAnalyzer::disableSROA(DenseMap<Value *, int>::iterator CostIt) { in disableSROA() argument
270 Cost += CostIt->second; in disableSROA()
271 SROACostSavings -= CostIt->second; in disableSROA()
272 SROACostSavingsLost += CostIt->second; in disableSROA()
273 SROAArgCosts.erase(CostIt); in disableSROA()
279 DenseMap<Value *, int>::iterator CostIt; in disableSROA() local
280 if (lookupSROAArgAndCost(V, SROAArg, CostIt)) in disableSROA()
281 disableSROA(CostIt); in disableSROA()
285 void CallAnalyzer::accumulateSROACost(DenseMap<Value *, int>::iterator CostIt, in accumulateSROACost() argument
287 CostIt->second += InstructionCost; in accumulateSROACost()
384 DenseMap<Value *, int>::iterator CostIt; in visitGetElementPtr() local
386 lookupSROAArgAndCost(I.getPointerOperand(), SROAArg, CostIt); in visitGetElementPtr()
400 disableSROA(CostIt); in visitGetElementPtr()
426 disableSROA(CostIt); in visitGetElementPtr()
450 DenseMap<Value *, int>::iterator CostIt; in visitBitCast() local
451 if (lookupSROAArgAndCost(I.getOperand(0), SROAArg, CostIt)) in visitBitCast()
488 DenseMap<Value *, int>::iterator CostIt; in visitPtrToInt() local
489 if (lookupSROAArgAndCost(I.getOperand(0), SROAArg, CostIt)) in visitPtrToInt()
519 DenseMap<Value *, int>::iterator CostIt; in visitIntToPtr() local
520 if (lookupSROAArgAndCost(Op, SROAArg, CostIt)) in visitIntToPtr()
717 DenseMap<Value *, int>::iterator CostIt; in visitCmpInst() local
718 if (lookupSROAArgAndCost(I.getOperand(0), SROAArg, CostIt)) { in visitCmpInst()
720 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitCmpInst()
724 disableSROA(CostIt); in visitCmpInst()
787 DenseMap<Value *, int>::iterator CostIt; in visitLoad() local
788 if (lookupSROAArgAndCost(I.getPointerOperand(), SROAArg, CostIt)) { in visitLoad()
790 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitLoad()
794 disableSROA(CostIt); in visitLoad()
802 DenseMap<Value *, int>::iterator CostIt; in visitStore() local
803 if (lookupSROAArgAndCost(I.getPointerOperand(), SROAArg, CostIt)) { in visitStore()
805 accumulateSROACost(CostIt, InlineConstants::InstrCost); in visitStore()
809 disableSROA(CostIt); in visitStore()