I know I wrote an #Introduction but I can't find it. I'll pin this one.
I'm retired after 38 years doing OS (VMS) and compiler (Fortran, Ada, Pascal) software development for DEC/Compaq/Intel. Currently chair of the international Fortran standards committee.
I'm on my city's Zoning board, got elected to a low-level election-related position, and run several web sites. My wife and I currently have four cats from the shelter I run the web site for. See my web site for more background.
@miguelraz I can point you to Intel's documentation on optimization at bit.ly/3E44ezE - some of the sections there may be useful. Most compilers do a set of common optimizations such as loop unrolling, value propagation, inlining, etc. https://en.wikipedia.org/wiki/Optimizing_compiler is also a good resource.