[all-commits] [llvm/llvm-project] e98099: [SimplifyLibCalls] Simplify cabs libcall if real o...

Hendrik Hübner via All-commits all-commits at lists.llvm.org
Thu Jul 11 04:01:28 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e980990ee4ef0b2690094186cb4331e224561a20
      https://github.com/llvm/llvm-project/commit/e980990ee4ef0b2690094186cb4331e224561a20
  Author: Hendrik Hübner <117831077+HendrikHuebner at users.noreply.github.com>
  Date:   2024-07-11 (Thu, 11 Jul 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/cabs-discrete.ll

  Log Message:
  -----------
  [SimplifyLibCalls] Simplify cabs libcall if real or imaginary part of input is zero (#97976)

cabs(a + i0) -> abs(a)
cabs(0 +ib) -> abs(b)

Closes #97336



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