diff options
author | Andrew Trick <atrick@apple.com> | 2012-09-08 00:07:26 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-09-08 00:07:26 +0000 |
commit | a34434184915cf869e2daf26a9d15483b7981aaa (patch) | |
tree | 5f254a0c6c5e3ccda0643b0fb1a555592e5c1709 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 3adf3b0ac0927ee95d59e3c98599254072fb26f5 (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.cpp | 1 |
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())); } } |