[PATCH] D109954: [InstCombine] powi(x, y) * powi(x, z) -> powi(x, y + z)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 17 00:50:47 PDT 2021
xbolva00 created this revision.
xbolva00 added a reviewer: spatel.
Herald added a subscriber: hiraditya.
xbolva00 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
https://reviews.llvm.org/D109954
Files:
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/powi.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109954.373160.patch
Type: text/x-patch
Size: 6178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210917/b135fb1a/attachment.bin>
More information about the llvm-commits
mailing list