(Although both Intel and AMD are x86 chip manufacturers, each has its own compiler, and it will definitely be different when running on each other's platform. In contrast, Intel's development strength and industry appeal are far beyond AMD, and software and hardware optimization is naturally more in place. AMD has also been accusing Intel of using software compiled by its compiler to run on its own CPU, and its efficiency will be deliberately reduced, affecting performance.
Interestingly, there is now a software called "Intel Compiler Patcher" on the Internet, which claims to be able to automatically scan and detect software developed with the Intel C++ compiler, optimize it, and improve performance on AMD CPUs. !)