File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
mlir/lib/Dialect/XeGPU/Transforms Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1459,7 +1459,10 @@ void XeGPUSubgroupDistributePass::runOnOperation() {
14591459 RewritePatternSet patterns (&getContext ());
14601460 patterns.add <MoveFuncBodyToWarpExecuteOnLane0>(&getContext ());
14611461
1462- (void )applyPatternsGreedily (getOperation (), std::move (patterns));
1462+ if (failed (applyPatternsGreedily (getOperation (), std::move (patterns)))) {
1463+ signalPassFailure ();
1464+ return ;
1465+ }
14631466 }
14641467 // Finally, do the SIMD to SIMT distribution.
14651468 RewritePatternSet patterns (&getContext ());
@@ -1470,5 +1473,8 @@ void XeGPUSubgroupDistributePass::runOnOperation() {
14701473 int64_t warpSz) { return Value (); };
14711474 vector::populatePropagateWarpVectorDistributionPatterns (
14721475 patterns, distributionFn, shuffleFn);
1473- (void )applyPatternsGreedily (getOperation (), std::move (patterns));
1476+ if (failed (applyPatternsGreedily (getOperation (), std::move (patterns)))) {
1477+ signalPassFailure ();
1478+ return ;
1479+ }
14741480}
You can’t perform that action at this time.
0 commit comments