When iterating through all phi operands in updatePredecessorProfileMetadata, we believe it should not return early if we find some invalid cases (multiple predecessors/non-branch-inst). Instead, it should continue to the next operand, because the predecessors ought to be independent of each other.
Otherwise if the invalid case happen to be the first operand in the phi, the function does not process the remaining operands.
(This patch is intended to resolve the issue that is mentioned in https://reviews.llvm.org/D36864)