Fix bug with critical edge splitting code where it wouldn't update PHI nodes