[all-commits] [llvm/llvm-project] fa2783: [InstCombine] Remove hasOneUse check for pow(C, x) ...

jayfoad via All-commits all-commits at lists.llvm.org
Tue May 5 06:46:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fa2783d79a233468ac8630361d9b75512c0cb2bd
      https://github.com/llvm/llvm-project/commit/fa2783d79a233468ac8630361d9b75512c0cb2bd
  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] Remove hasOneUse check for pow(C,x) -> exp2(log2(C)*x)

I don't think there's any good reason not to do this transformation when
the pow has multiple uses.

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




More information about the All-commits mailing list