File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
lib/Dialect/TritonGPU/Transforms Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -256,8 +256,7 @@ class TritonGPUOptimizeThreadLocalityPass
256256 mlir::RewritePatternSet layoutPatterns (&getContext ());
257257 layoutPatterns.add <OptimizeReshapeLayoutPattern>(&getContext ());
258258 layoutPatterns.add <OptimizeGatherLayoutPattern>(&getContext ());
259- if (mlir::applyPatternsGreedily (mod, std::move (layoutPatterns))
260- .failed ()) {
259+ if (mlir::applyPatternsGreedily (mod, std::move (layoutPatterns)).failed ()) {
261260 signalPassFailure ();
262261 }
263262
Original file line number Diff line number Diff line change @@ -110,8 +110,7 @@ struct PipelinePass : public impl::TritonGPUPipelineBase<PipelinePass> {
110110 getOperation ().getContext ()->getLoadedDialect <arith::ArithDialect>();
111111 RewritePatternSet patterns (getOperation ().getContext ());
112112 arithDialect->getCanonicalizationPatterns (patterns);
113- if (applyPatternsGreedily (getOperation (), std::move (patterns))
114- .failed ())
113+ if (applyPatternsGreedily (getOperation (), std::move (patterns)).failed ())
115114 return signalPassFailure ();
116115
117116 // Try to pipeline the outer loop to overlap the prologue and epilogue of
Original file line number Diff line number Diff line change @@ -422,8 +422,7 @@ struct PrefetchPass : public impl::TritonGPUPrefetchBase<PrefetchPass> {
422422 RewritePatternSet cleanUpPatterns (&getContext ());
423423 triton::gpu::ConvertLayoutOp::getCanonicalizationPatterns (cleanUpPatterns,
424424 &getContext ());
425- if (mlir::applyPatternsGreedily (getOperation (),
426- std::move (cleanUpPatterns))
425+ if (mlir::applyPatternsGreedily (getOperation (), std::move (cleanUpPatterns))
427426 .failed ()) {
428427 signalPassFailure ();
429428 }
You can’t perform that action at this time.
0 commit comments