[Mlir-commits] [mlir] [MLIR][Transforms] Fix dialect conversion inverse mapping (PR #104648)

Billy Zhu llvmlistbot at llvm.org
Fri Aug 16 16:11:39 PDT 2024


================
@@ -2527,6 +2527,7 @@ LogicalResult OperationConverter::legalizeConvertedOpResultTypes(
           opReplacement->getConverter());
       rewriterImpl.mapping.map(result, castValue);
       inverseMapping[castValue].push_back(result);
+      llvm::erase(inverseMapping[newValue], result);
----------------
zyx-billy wrote:

This is probably a very short list. Open to changing it to a Set though.

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


More information about the Mlir-commits mailing list