From 665970d421c8e2d3c162ec8f39247c22577892fe Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Wed, 13 Oct 2021 01:37:56 -0700 Subject: [PATCH] [fir][NFC] Remove unused variable --- flang/lib/Optimizer/Transforms/RewriteLoop.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/flang/lib/Optimizer/Transforms/RewriteLoop.cpp b/flang/lib/Optimizer/Transforms/RewriteLoop.cpp index 6681577f8807..8f13bc2047f9 100644 --- a/flang/lib/Optimizer/Transforms/RewriteLoop.cpp +++ b/flang/lib/Optimizer/Transforms/RewriteLoop.cpp @@ -137,8 +137,7 @@ public: using OpRewritePattern::OpRewritePattern; CfgIfConv(mlir::MLIRContext *ctx, bool forceLoopToExecuteOnce) - : mlir::OpRewritePattern(ctx), - forceLoopToExecuteOnce(forceLoopToExecuteOnce) {} + : mlir::OpRewritePattern(ctx) {} mlir::LogicalResult matchAndRewrite(IfOp ifOp, mlir::PatternRewriter &rewriter) const override { @@ -193,9 +192,6 @@ public: rewriter.replaceOp(ifOp, continueBlock->getArguments()); return success(); } - -private: - bool forceLoopToExecuteOnce; }; /// Convert `fir.iter_while` to control-flow. @@ -204,8 +200,7 @@ public: using OpRewritePattern::OpRewritePattern; CfgIterWhileConv(mlir::MLIRContext *ctx, bool forceLoopToExecuteOnce) - : mlir::OpRewritePattern(ctx), - forceLoopToExecuteOnce(forceLoopToExecuteOnce) {} + : mlir::OpRewritePattern(ctx) {} mlir::LogicalResult matchAndRewrite(fir::IterWhileOp whileOp, @@ -294,9 +289,6 @@ public: rewriter.replaceOp(whileOp, args); return success(); } - -private: - bool forceLoopToExecuteOnce; }; /// Convert FIR structured control flow ops to CFG ops.