Interprocedural optimization (IPO)
Optimizations that look across function boundaries instead of at one function at a time.
An ordinary optimizer treats each call as a black box that might do anything to anything. Interprocedural analysis builds a call graph and works out what functions really do: that a parameter is always the same constant, that a function never writes memory, that it never throws. Frances Allen was writing about interprocedural data-flow analysis as early as 1974.
The results feed inlining, constant propagation between functions, cloning a function specialized for a particular argument, dropping unused parameters, and devirtualization. GCC calls the family IPA; LLVM groups it under its IPO passes. Its reach ends at the translation unit, and that is precisely the wall link-time optimization knocks down.