Get the latest tech news
GCC Patch Revived For -mtune=generic Showing Nice Benefits On Intel & AMD CPUs
A 2021 era patch for the GNU Compiler Collection (GCC) has been revived and discussed in recent days around simplifying the memcpy and memset inlining strategies when compiling code with the '-mtune=generic' option
A 2021 era patch for the GNU Compiler Collection (GCC) has been revived and discussed in recent days around simplifying the memcpy and memset inlining strategies when compiling code with the "-mtune=generic" option. Lu of Intel's compiler team has been working to resurrect this patch for improving the memcpy and memset behavior during common -mtune=generic targeting with GCC. When compiling with "-march=x86-64 -O2 -mtune=generic" as commonly done by Linux distributions and other software vendors, there are some nice gains observed out of this patch.
Or read this on Phoronix