This optimization already exists, but for the libcall versions of these functions and not for their intrinsic form. Solves https://github.com/llvm/llvm-project/issues/139044. There are probably more opportunities for other intrinsics, because the switch-case in `LibCallSimplifier::optimizeCall` covers only `pow`, `exp2`, `log`, `log2`, `log10`, `sqrt`, `memset`, `memcpy` and `memmove`.
164 KiB
164 KiB