[Mlir-commits] [mlir] [mlir][Transforms] Dialect Conversion: Add `replaceOpWithMultiple` (PR #115816)
Markus Böck
llvmlistbot at llvm.org
Wed Nov 13 00:18:15 PST 2024
================
@@ -618,21 +618,22 @@ class SparseCallConverter : public OpConversionPattern<func::CallOp> {
assert(!sparseFlat.empty());
if (sparseFlat.size() > 1) {
auto flatSize = sparseFlat.size();
- ValueRange fields(iterator_range<ResultRange::iterator>(
- newCall.result_begin() + retOffset,
- newCall.result_begin() + retOffset + flatSize));
- castedRet.push_back(genTuple(rewriter, loc, retType, fields));
+ packedResultVals.push_back(SmallVector<Value>());
----------------
zero9178 wrote:
```suggestion
packedResultVals.emplace_back();
```
https://github.com/llvm/llvm-project/pull/115816
More information about the Mlir-commits
mailing list