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 | d3b4d2cb761ced83a9a4598c12ad9268efe75e29 (patch) | |
tree | f05d7a3d179aaaecd9dd355f6ec629419f6eb965 /llvm/lib/Transforms/Utils | |
parent | 3a4599f6cb2e233a48f951ba47bc007e720a45e6 (diff) | |
download | bcm5719-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/Transforms/Utils')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 1 |
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())); } } |