[all-commits] [llvm/llvm-project] c0fdfc: [InstCombine] powi(x, y) * powi(x, z) -> powi(x, y...

Dávid Bolvanský via All-commits all-commits at lists.llvm.org
Tue Sep 21 09:21:01 PDT 2021


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

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

  Log Message:
  -----------
  [InstCombine] powi(x, y) * powi(x, z) -> powi(x, y + z)

We already have pow(x, y) * pow(x, z) -> pow(x, y + z) transformation, but we are missing same transformation for powi (power is integer).

Requires reassoc.

Reviewed By: spatel

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




More information about the All-commits mailing list