Adding iree_processor_yield() for use in spin loops. If we're going to spin we should at least be less bad about it. Most processors use this as a strong hint that a particular core is spinning in order to allow cooperatively-scheduled smt workloads a chance to run. It also introduces latency that can help lighten the memory system load that sitting and hammering the spin condition can cause.
Adding iree_processor_yield() for use in spin loops.
If we're going to spin we should at least be less bad about it.
Most processors use this as a strong hint that a particular core is
spinning in order to allow cooperatively-scheduled smt workloads a chance
to run. It also introduces latency that can help lighten the memory
system load that sitting and hammering the spin condition can cause.

google/iree,google/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,iree-org/iree,google/iree,google/iree