[Mlir-commits] [mlir] [MLIR][SCF] Verify number of operands in scf.parallel reduce terminator (PR #171450)
Mehdi Amini
llvmlistbot at llvm.org
Thu Dec 11 02:14:16 PST 2025
================
@@ -3152,6 +3152,9 @@ LogicalResult ParallelOp::verify() {
return emitOpError() << "expects number of results: " << resultsSize
<< " to be the same as number of initial values: "
<< initValsSize;
+ if (reduceOp.getNumOperands() != initValsSize)
+ // Delegate error reporting to ReduceOp
+ return success();
----------------
joker-eph wrote:
If the reduceOp has the right number of regions, where is the consistency with the initVals checked?
(do we have a test already?)
https://github.com/llvm/llvm-project/pull/171450
More information about the Mlir-commits
mailing list