From a34434184915cf869e2daf26a9d15483b7981aaa Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Sat, 8 Sep 2012 00:07:26 +0000 Subject: 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 --- lib/Transforms/Utils/SimplifyCFG.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/Transforms') diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 3df3099..db8edea 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())); } } -- cgit v1.1