The talk will describe how the upcoming GCC 14 utilizes advanced interprocedural analysis in order to optimize code that heavily pushes elements into and pops them from C++ std::vector. One such example is JPEG XL library (libjxl) which GCC 14 can speed up by 40% without resorting to overaggressive inlining.