[llvm] [InstCombine] Fold afn powi(2.0, x) to ldexp(1.0, x) (PR #202114)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 04:48:16 PDT 2026
jjppp wrote:
> [SVE][AVX512] failed to lower powif(2, x) to native instruction (fscale/vscalef) #200654
Done. However, using `CreateVectorSplat` introduces extra `shufflevectors` instruction that stops the pattern `X * ldexp(1.0, Y) => ldexp(X, Y)`. Handling such cases likely leads to suboptimal codegen.
https://github.com/llvm/llvm-project/pull/202114
More information about the llvm-commits
mailing list