summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitd3b4d2cb761ced83a9a4598c12ad9268efe75e29 (patch)
treef05d7a3d179aaaecd9dd355f6ec629419f6eb965 /llvm/lib
parent3a4599f6cb2e233a48f951ba47bc007e720a45e6 (diff)
downloadbcm5719-llvm-d3b4d2cb761ced83a9a4598c12ad9268efe75e29.tar.gz
bcm5719-llvm-d3b4d2cb761ced83a9a4598c12ad9268efe75e29.zip
Remove an incorrect assert during branch weight propagation.
Patch and test case by Alastair Murray! llvm-svn: 163437
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 3df309958b2..db8edea10c8 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/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()));
}
}
OpenPOWER on IntegriCloud