Tolerate degenerate phi nodes that can occur in the middle of optimization