[Mlir-commits] [mlir] 7d431e9 - [mlir][complex] Remove unused variables. NFC.
Benjamin Kramer
llvmlistbot at llvm.org
Wed Jun 1 00:33:28 PDT 2022
Author: Benjamin Kramer
Date: 2022-06-01T09:33:02+02:00
New Revision: 7d431e9ec57b4c0a83b31bb6c1e7446add3b172a
URL: https://github.com/llvm/llvm-project/commit/7d431e9ec57b4c0a83b31bb6c1e7446add3b172a
DIFF: https://github.com/llvm/llvm-project/commit/7d431e9ec57b4c0a83b31bb6c1e7446add3b172a.diff
LOG: [mlir][complex] Remove unused variables. NFC.
Added:
Modified:
mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp b/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
index 29390ab74816d..a7fb824f302ce 100644
--- a/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
+++ b/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
@@ -736,8 +736,6 @@ struct TanOpConversion : public OpConversionPattern<complex::TanOp> {
matchAndRewrite(complex::TanOp op, OpAdaptor adaptor,
ConversionPatternRewriter &rewriter) const override {
auto loc = op.getLoc();
- auto type = adaptor.getComplex().getType().cast<ComplexType>();
- auto elementType = type.getElementType().cast<FloatType>();
Value cos = rewriter.create<complex::CosOp>(loc, adaptor.getComplex());
Value sin = rewriter.create<complex::SinOp>(loc, adaptor.getComplex());
More information about the Mlir-commits
mailing list