You have to work pretty hard to get code to a state such that compiler optimizations will save you.
I've had this same argument with cache management specialists. If you have to consider how the cache works for your product to work, you're doing it wrong.