[Mlir-commits] [mlir] [mlir][math] Expand powfI operation for constant power operand. (PR #87081)

Daniel Garvey llvmlistbot at llvm.org
Fri Mar 29 08:51:34 PDT 2024


================
@@ -202,6 +202,48 @@ static LogicalResult convertCeilOp(math::CeilOp op, PatternRewriter &rewriter) {
   rewriter.replaceOp(op, ret);
   return success();
 }
+
+// Convert `math.fpowi` to a series of `arith.mulf` operations.
+// If the power is negative, we divide the result by 1.
----------------
dan-garvey wrote:

is this supposed to say divide one by the result? 

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


More information about the Mlir-commits mailing list