[Mlir-commits] [mlir] bc1c4e2 - [MLIR][math] Remove dead IPowI fold return (NFC) (#221827)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Sep 7 13:49:25 PDT 2026
Author: Mehdi Amini
Date: 2026-09-07T20:49:20Z
New Revision: bc1c4e23e88262a480a081f1a7ecb84e75351b61
URL: https://github.com/llvm/llvm-project/commit/bc1c4e23e88262a480a081f1a7ecb84e75351b61
DIFF: https://github.com/llvm/llvm-project/commit/bc1c4e23e88262a480a081f1a7ecb84e75351b61.diff
LOG: [MLIR][math] Remove dead IPowI fold return (NFC) (#221827)
The folder returns the constant-fold helper result directly, remove the
unreachable fallback after the helper call.
Found by Coverity.
Assisted-by: Codex
Added:
Modified:
mlir/lib/Dialect/Math/IR/MathOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Math/IR/MathOps.cpp b/mlir/lib/Dialect/Math/IR/MathOps.cpp
index 2fd081282c2aa..c012b26d285c6 100644
--- a/mlir/lib/Dialect/Math/IR/MathOps.cpp
+++ b/mlir/lib/Dialect/Math/IR/MathOps.cpp
@@ -456,8 +456,6 @@ OpFoldResult math::IPowIOp::fold(FoldAdaptor adaptor) {
curBase *= curBase;
}
});
-
- return Attribute();
}
//===----------------------------------------------------------------------===//
More information about the Mlir-commits
mailing list