For the longest time, compilers have produced optimized binaries. In today's world, it is often daunting to know exactly which optimizations to choose from among the more than 80 options for basic optimizations and which of those will really benefit you.
In the Clear Linux* Project for Intel® Architecture, we use several optimizations but one in particular: Automatic Feedback-Directed Optimizer or AutoFDO. AutoFDO uses a sampling-based profile to drive feedback-directed optimizations. Our final goal is to generate optimized tools for real customers' applications based just on the sample-based profiles.