[all-commits] [llvm/llvm-project] d8ef05: InstCombine: Add baseline checks for ldexp(x, c ? ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Jul 1 14:40:38 PDT 2024


  Branch: refs/heads/users/arsenm/instcombine-fold-ldexp-select-with-0
  Home:   https://github.com/llvm/llvm-project
  Commit: d8ef055901f80ed746ff459a3ad53ee5452f8dea
      https://github.com/llvm/llvm-project/commit/d8ef055901f80ed746ff459a3ad53ee5452f8dea
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M llvm/test/Transforms/InstCombine/ldexp.ll

  Log Message:
  -----------
  InstCombine: Add baseline checks for ldexp(x, c ? x : 0) combine


  Commit: d76862603d60a4cdc5c49f15f75b2d522f000ce5
      https://github.com/llvm/llvm-project/commit/d76862603d60a4cdc5c49f15f75b2d522f000ce5
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/ldexp.ll

  Log Message:
  -----------
  InstCombine: Try to fold ldexp with select of power operand

This makes it more likely a constant value can fold into the source
operand.


Compare: https://github.com/llvm/llvm-project/compare/d8ef055901f8%5E...d76862603d60

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