aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-09-08 00:07:26 +0000
committerAndrew Trick <atrick@apple.com>2012-09-08 00:07:26 +0000
commita34434184915cf869e2daf26a9d15483b7981aaa (patch)
tree5f254a0c6c5e3ccda0643b0fb1a555592e5c1709 /lib/Transforms/Utils/SimplifyCFG.cpp
parent3adf3b0ac0927ee95d59e3c98599254072fb26f5 (diff)
Remove an incorrect assert during branch weight propagation.
Patch and test case by Alastair Murray! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--lib/Transforms/Utils/SimplifyCFG.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp
index 3df309958b..db8edea10c 100644
--- a/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -929,7 +929,6 @@ bool SimplifyCFGOpt::FoldValueComparisonIntoPredecessors(TerminatorInst *TI,
GetWeight(TI, i)->getValue().getZExtValue());
} else if (PredHasWeights) {
// Split the old default's weight amongst the children
- assert(PredDefaultWeight != 0);
Weights.push_back(PredDefaultWeight / (1 + BBCases.size()));
}
}