Invalidate SCEV before adjusting switch instruction, so the IR remains in a valid state for SCEV invalidation.
mentioned in commit ba8facff