[llvm-branch-commits] [mlir] [mlir][Transforms] Dialect Conversion: Add `replaceOpWithMultiple` (PR #115816)
Markus Böck via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Nov 12 02:46:11 PST 2024
================
@@ -1390,8 +1412,9 @@ void ConversionPatternRewriterImpl::notifyOpReplaced(Operation *op,
isUnresolvedMaterialization = true;
// Create mappings for each of the new result values.
- for (auto [newValue, result] : llvm::zip(newValues, op->getResults())) {
- if (!newValue) {
+ for (auto [n, result] : llvm::zip(newValues, op->getResults())) {
----------------
zero9178 wrote:
```suggestion
for (auto [n, result] : llvm::zip_equal(newValues, op->getResults())) {
```
https://github.com/llvm/llvm-project/pull/115816
More information about the llvm-branch-commits
mailing list