[llvm-branch-commits] [flang] [mlir] [mlir][Transforms] Support 1:N mappings in `ConversionValueMapping` (PR #116524)
Markus Böck via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Dec 21 10:03:54 PST 2024
================
@@ -1478,34 +1497,12 @@ Value ConversionPatternRewriterImpl::findOrBuildReplacementValue(
}
Value castValue = buildUnresolvedMaterialization(
MaterializationKind::Source, computeInsertPoint(repl), value.getLoc(),
- /*valueToMap=*/value, /*inputs=*/repl, /*outputType=*/value.getType(),
- /*originalType=*/Type(), converter);
- mapping.map(value, castValue);
+ /*valuesToMap=*/{value}, /*inputs=*/repl, /*outputType=*/value.getType(),
+ /*originalType=*/Type(), converter)[0];
----------------
zero9178 wrote:
```suggestion
/*originalType=*/Type(), converter).front();
```
https://github.com/llvm/llvm-project/pull/116524
More information about the llvm-branch-commits
mailing list