[Mlir-commits] [mlir] [mlir][scf] Fix `FoldTensorCastOfOutputIntoForallOp` for multi-result scf.forall (PR #173271)
donald chen
llvmlistbot at llvm.org
Tue Dec 23 04:58:12 PST 2025
================
@@ -2012,13 +2021,11 @@ struct FoldTensorCastOfOutputIntoForallOp
// After `mergeBlocks` happened, the destinations in the terminator were
// mapped to the tensor.cast old-typed results of the output bbArgs. The
// destination have to be updated to point to the output bbArgs directly.
- auto terminator = newForallOp.getTerminator();
- for (auto [yieldingOp, outputBlockArg] : llvm::zip(
- terminator.getYieldingOps(), newForallOp.getRegionIterArgs())) {
- if (auto parallelCombingingOp =
- dyn_cast<ParallelCombiningOpInterface>(yieldingOp)) {
- parallelCombingingOp.getUpdatedDestinations().assign(outputBlockArg);
- }
+ auto newOutputIterArgs = newForallOp.getRegionIterArgs();
----------------
cxy-1993 wrote:
expand auto
https://github.com/llvm/llvm-project/pull/173271
More information about the Mlir-commits
mailing list