Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:Weight

479 void MachineBasicBlock::addSuccessor(MachineBasicBlock *succ, uint32_t weight) {
481 // If we see non-zero value for the first time it means we actually use Weight
483 if (weight != 0 && Weights.empty())
486 if (weight != 0 || !Weights.empty())
487 Weights.push_back(weight);
498 // If Weight list is empty it means we don't use it (disabled optimization).
511 // If Weight list is empty it means we don't use it (disabled optimization).
552 // Update its weight instead of adding a duplicate edge.
577 uint32_t Weight = 0;
579 // If Weight list is empty it means we don't use it (disabled optimization).
581 Weight = *fromMBB->Weights.begin();
583 addSuccessor(Succ, Weight);
595 uint32_t Weight = 0;
597 Weight = *fromMBB->Weights.begin();
598 addSuccessor(Succ, Weight);
1088 /// getSuccWeight - Return weight of the edge from this block to MBB.
1097 /// Set successor weight of a given iterator.
1098 void MachineBasicBlock::setSuccWeight(succ_iterator I, uint32_t weight) {
1101 *getWeightIterator(I) = weight;
1108 assert(Weights.size() == Successors.size() && "Async weight list!");
1118 assert(Weights.size() == Successors.size() && "Async weight list!");