* lcm.c (optimize_mode_switching): Change bb used as indices