aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2012-08-30 15:45:16 +0000
committerMichael Ilseman <milseman@apple.com>2012-08-30 15:45:16 +0000
commit749807852bd927dd225a360e9a388e0cc2792036 (patch)
tree548aeea77b1e6608c381aaf6228ec3ac3633f3e0 /lib/Transforms/Utils/SimplifyCFG.cpp
parent86c0d8c92fd36f60fa12cc5a729a42ed403b277d (diff)
test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp
index dddc18fcef..04cc11dea0 100644
--- a/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -766,8 +766,8 @@ static ConstantInt* GetWeight(Instruction* I, int Pos) {
return 0;
}
-/// Scale the given weights based on the new TI's metadata. Scaling is done by
-/// multiplying every weight by the sum of the successor's weights.
+/// Scale the given weights based on the successor TI's metadata. Scaling is
+/// done by multiplying every weight by the sum of the successor's weights.
static void ScaleWeights(Instruction* STI, MutableArrayRef<uint64_t> Weights) {
// Sum the successor's weights
assert(HasBranchWeights(STI));