[Mlir-commits] [mlir] [mlir][Transforms] Dialect conversion: Add missing "else if" branch (PR #101148)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jul 30 12:23:07 PDT 2024


================
@@ -1328,15 +1328,19 @@ Block *ConversionPatternRewriterImpl::applySignatureConversion(
     mapping.map(origArg, argMat);
     appendRewrite<ReplaceBlockArgRewrite>(block, origArg);
----------------
MaheshRavishankar wrote:

Another thing that I noticed while debugging around here, the line 1329 are adding to the map and adding a pending block argument rewrite, and so is line 1349 below. Also the `builtin.unresolve_conversion_cast` generated in line 1325 is overriden by the one generated in line 1345 in some cases (with the mapping changed as well). I dont think that was intended. Might just be a harmless issue, but might be hiding a bug there.

https://github.com/llvm/llvm-project/pull/101148


More information about the Mlir-commits mailing list