ac/llvm: s_barrier rework to fix LLVM 15, clean up and add optimizations
because LLVM 15 doesn't insert s_waitcnt before s_barrier, which allows us to choose if we want to wait for anything.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
because LLVM 15 doesn't insert s_waitcnt before s_barrier, which allows us to choose if we want to wait for anything.