[all-commits] [llvm/llvm-project] 0b1702: InstCombine: Fold ldexp with constant exponent to ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Dec 11 02:42:03 PST 2025


  Branch: refs/heads/users/arsenm/instcombine-fold-ldexp-constant-to-fmul-pow2
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b17025f2e5842428a31b1dd9f8c0d9e14c88211
      https://github.com/llvm/llvm-project/commit/0b17025f2e5842428a31b1dd9f8c0d9e14c88211
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-12-11 (Thu, 11 Dec 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/fold-select-fmul-if-zero.ll
    M llvm/test/Transforms/InstCombine/ldexp.ll

  Log Message:
  -----------
  InstCombine: Fold ldexp with constant exponent to fmul

If we can represent this with an fmul, prefer it as a canonical
form. More optimizations will understand fmul, and allows contract to
fma.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list