[all-commits] [llvm/llvm-project] 22829a: [InstCombine] Allow denormal C in pow(C, y) -> exp2...

jayfoad via All-commits all-commits at lists.llvm.org
Tue May 5 08:26:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 22829ab5faf0337144e620189e2000749ab825c9
      https://github.com/llvm/llvm-project/commit/22829ab5faf0337144e620189e2000749ab825c9
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-05-05 (Tue, 05 May 2020)

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

  Log Message:
  -----------
  [InstCombine] Allow denormal C in pow(C,y) -> exp2(log2(C)*y)

We check that C is finite and strictly positive, but there's no need to
check that it's normal too. exp2 should be just as accurate on denormals
as pow is.

Differential Revision: https://reviews.llvm.org/D79413




More information about the All-commits mailing list