R600: Use shared op optimization when checking cycle compatibility