That codebase existed for 20 years and had contributions from nearly 200 people.
Sure, they could have come up with those optimizations without AI... but they didn't. What's your theory for why that is?