[InstCombine] fold pow(X,Y) / X -> pow(X, Y-1)
authorSanjay Patel <spatel@rotateright.com>
Fri, 13 Jan 2023 20:55:40 +0000 (15:55 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 13 Jan 2023 22:13:46 +0000 (17:13 -0500)
commit072b03c4714ea43af56bbfa6e5a271ef1a1c9e0a
treeb31946e44855c1af06e6b9799607e14e86e37922
parent61af2ab68142729cbe34c41c8ee8e6f38759c4ed
[InstCombine] fold pow(X,Y) / X -> pow(X, Y-1)

This is one of the patterns suggested in issue #34943.
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/fmul-pow.ll