PGO: preserve branch-weight metadata when simplifying two branches with a common