[llvm] [InstCombine] Add log-pow simplification for FP exponent edge case. (PR #76641)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 01:48:51 PST 2024


================
@@ -2495,13 +2495,17 @@ Value *LibCallSimplifier::optimizeLog(CallInst *Log, IRBuilderBase &B) {
 
   // log(pow(x,y)) -> y*log(x)
   AttributeList NoAttrs;
-  if (ArgLb == PowLb || ArgID == Intrinsic::pow) {
+  if (ArgLb == PowLb || ArgID == Intrinsic::pow || ArgID == Intrinsic::powi) {
----------------
arsenm wrote:

could add fix for libcall/intrinsic mismatch problem 

https://github.com/llvm/llvm-project/pull/76641


More information about the llvm-commits mailing list