[Mlir-commits] [mlir] [mlir][Transforms][NFC] Dialect conversion: Remove redundant `ReplaceBlockArgRewrite` (PR #105963)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Aug 24 16:29:10 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Matthias Springer (matthias-springer)
<details>
<summary>Changes</summary>
There was a redundant `appendRewrite<ReplaceBlockArgRewrite>(block, origArg);` in `ConversionPatternRewriterImpl::applySignatureConversion` that had no effect.
---
Full diff: https://github.com/llvm/llvm-project/pull/105963.diff
1 Files Affected:
- (modified) mlir/lib/Transforms/Utils/DialectConversion.cpp (-1)
``````````diff
diff --git a/mlir/lib/Transforms/Utils/DialectConversion.cpp b/mlir/lib/Transforms/Utils/DialectConversion.cpp
index 4058ed39621198..cc9c9495e5155c 100644
--- a/mlir/lib/Transforms/Utils/DialectConversion.cpp
+++ b/mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -1296,7 +1296,6 @@ Block *ConversionPatternRewriterImpl::applySignatureConversion(
OpBuilder::InsertPoint(newBlock, newBlock->begin()), origArg.getLoc(),
/*inputs=*/replArgs, origArgType, converter);
mapping.map(origArg, argMat);
- appendRewrite<ReplaceBlockArgRewrite>(block, origArg);
Type legalOutputType;
if (converter) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/105963
More information about the Mlir-commits
mailing list