Normalize MBB's successors' probabilities in several locations.
[oota-llvm.git] / lib / Target / ARM / ARMISelLowering.cpp
index fc32cf2ce4e5f141b56d04eb16db3677d5e0fe5f..29c072a6cc94e40b33d3c04416fda57ce9b669c1 100644 (file)
@@ -7397,6 +7397,7 @@ void ARMTargetLowering::EmitSjLjDispatchBlock(MachineInstr *MI,
     }
 
     BB->addSuccessor(DispatchBB, BranchProbability::getZero());
     }
 
     BB->addSuccessor(DispatchBB, BranchProbability::getZero());
+    BB->normalizeSuccProbs();
 
     // Find the invoke call and mark all of the callee-saved registers as
     // 'implicit defined' so that they're spilled. This prevents code from
 
     // Find the invoke call and mark all of the callee-saved registers as
     // 'implicit defined' so that they're spilled. This prevents code from