Lines Matching refs:Weight
169 ConstantInt *Weight = dyn_cast<ConstantInt>(WeightsNode->getOperand(i)); in calcMetadataWeights() local
170 if (!Weight) in calcMetadataWeights()
173 std::max<uint32_t>(1, Weight->getLimitedValue(WeightLimit))); in calcMetadataWeights()
424 uint32_t Weight = getEdgeWeight(BB, Succ); in getSumForBlock() local
427 Sum += Weight; in getSumForBlock()
437 uint32_t Weight = getEdgeWeight(Src, Dst); in isEdgeHot() local
442 return (uint64_t)Weight * 5 > (uint64_t)Sum * 4; in isEdgeHot()
452 uint32_t Weight = getEdgeWeight(BB, Succ); in getHotSucc() local
455 Sum += Weight; in getHotSucc()
458 if (Weight > MaxWeight) { in getHotSucc()
459 MaxWeight = Weight; in getHotSucc()
484 setEdgeWeight(const BasicBlock *Src, const BasicBlock *Dst, uint32_t Weight) { in setEdgeWeight() argument
485 Weights[std::make_pair(Src, Dst)] = Weight; in setEdgeWeight()
487 << Dst->getNameStr() << " weight to " << Weight in setEdgeWeight()