Function attribute inference
The compiler working out properties of a function on its own, such as never writing memory or never throwing, and recording them as attributes.
A call is a black hole to the optimizer until it knows what the callee does. So a pass walks the call graph bottom-up and proves whatever it can: readnone or readonly if memory is left alone, nounwind if no exception can escape, nocapture if a pointer argument isn't stashed away. In LLVM the pass is called FunctionAttrs, and since 2019 there is Johannes Doerfert's more general Attributor. GCC's equivalent is ipa-pure-const.
The payoff shows up in the caller. A call to a readnone function can be hoisted out of a loop or dropped if its result goes unused, and nounwind makes landing pads vanish. The catch is interposition: a function that might be swapped out at load time gets no inferred attributes, because the replacement is free to do whatever it likes.