[Mlir-commits] [mlir] e345d42 - [mlir][Arith] Remove redundant defination, NFC.
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Dec 30 01:08:44 PST 2022
Author: jacquesguan
Date: 2022-12-30T17:08:36+08:00
New Revision: e345d420254176bf68d6b3b14f0c48f107767762
URL: https://github.com/llvm/llvm-project/commit/e345d420254176bf68d6b3b14f0c48f107767762
DIFF: https://github.com/llvm/llvm-project/commit/e345d420254176bf68d6b3b14f0c48f107767762.diff
LOG: [mlir][Arith] Remove redundant defination, NFC.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D140774
Added:
Modified:
mlir/lib/Dialect/Arith/IR/ArithOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
index e61169cb64cc0..844905c20210a 100644
--- a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+++ b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
@@ -265,7 +265,6 @@ arith::AddUIExtendedOp::fold(ArrayRef<Attribute> operands,
Type overflowTy = getOverflow().getType();
// addui_extended(x, 0) -> x, false
if (matchPattern(getRhs(), m_Zero())) {
- auto overflowZero = APInt::getZero(1);
Builder builder(getContext());
auto falseValue = builder.getZeroAttr(overflowTy);
More information about the Mlir-commits
mailing list