[Mlir-commits] [mlir] [MLIR][Transforms] Fix dialect conversion inverse mapping (PR #104648)
Matthias Springer
llvmlistbot at llvm.org
Mon Aug 19 12:07:22 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);
----------------
matthias-springer wrote:
I agree, list is usually very short, so a vector should be fine.
https://github.com/llvm/llvm-project/pull/104648
More information about the Mlir-commits
mailing list