X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FBranchWeightMetadata.rst;h=6cbcb0f0fb241e12a7dabdc2eb20ac0b3090dcbc;hb=7fdf13ed48a8dfbd6e8561e5ac573cc395ffbf1b;hp=2ebc6c32416eaf2281d58b4f6cb3e2348a1cc008;hpb=a3bccceda7ca4d8e8fe8541675b594b4b7ba4148;p=oota-llvm.git diff --git a/docs/BranchWeightMetadata.rst b/docs/BranchWeightMetadata.rst index 2ebc6c32416..6cbcb0f0fb2 100644 --- a/docs/BranchWeightMetadata.rst +++ b/docs/BranchWeightMetadata.rst @@ -27,7 +27,7 @@ Supported Instructions ^^^^^^^^^^^^^^ Metadata is only assigned to the conditional branches. There are two extra -operarands for the true and the false branch. +operands for the true and the false branch. .. code-block:: llvm @@ -114,12 +114,12 @@ CFG Modifications Branch Weight Metatada is not proof against CFG changes. If terminator operands' are changed some action should be taken. In other case some misoptimizations may -occur due to incorrent branch prediction information. +occur due to incorrect branch prediction information. Function Entry Counts ===================== -To allow comparing different functions durint inter-procedural analysis and +To allow comparing different functions during inter-procedural analysis and optimization, ``MD_prof`` nodes can also be assigned to a function definition. The first operand is a string indicating the name of the associated counter.