[all-commits] [llvm/llvm-project] c0afb0: [NFC] Added tests for llvm.powi optimizations

Dávid Bolvanský via All-commits all-commits at lists.llvm.org
Thu Sep 16 10:42:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0afb0092423a534d6a4f81a233845ef65f93930
      https://github.com/llvm/llvm-project/commit/c0afb0092423a534d6a4f81a233845ef65f93930
  Author: Dávid Bolvanský <david.bolvansky at gmail.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    A llvm/test/Transforms/InstCombine/powi.ll

  Log Message:
  -----------
  [NFC] Added tests for llvm.powi optimizations


  Commit: a4a426c9e0da06b9ff4c58d3a15a1e789efebfb6
      https://github.com/llvm/llvm-project/commit/a4a426c9e0da06b9ff4c58d3a15a1e789efebfb6
  Author: Dávid Bolvanský <david.bolvansky at gmail.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/powi.ll

  Log Message:
  -----------
  [InstCombine] Added llvm.powi optimizations

If power is even:
powi(-x, p) -> powi(x, p)
powi(fabs(x), p) -> powi(x, p)
powi(copysign(x, y), p) -> powi(x, p)


Compare: https://github.com/llvm/llvm-project/compare/446e21623c28...a4a426c9e0da


More information about the All-commits mailing list