enum class BlockExecWeight

Description

Set of dedicated "absolute" execution weights for a block. These weights are meaningful relative to each other and their derivatives only.

Declared at: llvm/lib/Analysis/BranchProbabilityInfo.cpp:197

Enumerators

NameValueComment
ZERO0Special weight used for cases with exact zero probability.
LOWEST_NON_ZERO1Minimal possible non zero weight.
UNREACHABLE0Weight to an 'unreachable' block.
NORETURN1Weight to a block containing non returning call.
UNWIND1Weight to 'unwind' block of an invoke instruction.
COLD65535Weight to a 'cold' block. Cold blocks are the ones containing calls marked with attribute 'cold'.
DEFAULT1048575Default weight is used in cases when there is no dedicated execution weight set. It is not propagated through the domination line either.