Lines Matching defs:Weight
89 // | | (Weight = 124)
93 // | (Weight = 4)
202 /// Weight to an 'unreachable' block.
204 /// Weight to a block containing non returning call.
206 /// Weight to 'unwind' block of an invoke instruction.
208 /// Weight to a 'cold' block. Cold blocks are the ones containing calls marked
676 auto Weight = getEstimatedEdgeWeight({SrcLoopBB, DstLoopBB});
678 if (!Weight)
681 if (!MaxWeight || *MaxWeight < *Weight)
682 MaxWeight = Weight;
892 std::optional<uint32_t> Weight;
896 Weight = getEstimatedEdgeWeight(Edge);
900 Weight != static_cast<uint32_t>(BlockExecWeight::ZERO)) {
902 Weight = std::max(
904 Weight.value_or(static_cast<uint32_t>(BlockExecWeight::DEFAULT)) /
910 Weight != static_cast<uint32_t>(BlockExecWeight::ZERO)) {
912 Weight = std::max(
914 Weight.value_or(static_cast<uint32_t>(BlockExecWeight::DEFAULT)) / 2);
917 if (Weight)
921 Weight.value_or(static_cast<uint32_t>(BlockExecWeight::DEFAULT));