Home
last modified time | relevance | path

Searched refs:ConstCand (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp337 for (auto ConstCand = S; ConstCand != E; ++ConstCand) { in maximizeConstantsInRange() local
338 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
339 if (ConstCand->CumulativeCost > MaxCostItr->CumulativeCost) in maximizeConstantsInRange()
340 MaxCostItr = ConstCand; in maximizeConstantsInRange()
347 for (auto ConstCand = S; ConstCand != E; ++ConstCand) { in maximizeConstantsInRange() local
348 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
349 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
351 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
352 DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() << "\n"); in maximizeConstantsInRange()
354 for (auto User : ConstCand->Uses) { in maximizeConstantsInRange()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp495 for (auto ConstCand = S; ConstCand != E; ++ConstCand) { in maximizeConstantsInRange() local
496 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
497 if (ConstCand->CumulativeCost > MaxCostItr->CumulativeCost) in maximizeConstantsInRange()
498 MaxCostItr = ConstCand; in maximizeConstantsInRange()
505 for (auto ConstCand = S; ConstCand != E; ++ConstCand) { in maximizeConstantsInRange() local
506 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
507 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
509 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
510 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() in maximizeConstantsInRange()
513 for (auto User : ConstCand->Uses) { in maximizeConstantsInRange()
[all …]