I am writing code to “walk a graph” and don’t care the order I visit the nodes in. Therefore it will clearly be of benefits to order the graph walk to take advantage of what is already loaded into the CPU cache.
But how can I make a load instruction “abort” if the data is not already in the CPU cache?