R600/SI: Insert s_waitcnt before s_barrier instructions.