- Fold away redundant %t = gpu.wait async + gpu.wait [%t] pairs.
- Fold away %t = gpu.wait async ... ops when %t has no uses.
- Fold away gpu.wait [] ops.
- In case of %t1 = gpu.wait async [%t0], replace all uses of %t1 with %t0.
Differential D121878
[MLIR][GPU] Add canonicalization patterns for folding simple gpu.wait ops. arnab-oss on Mar 16 2022, 9:10 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions Thanks for taking care of this!
Comment Actions ping @csigg, can you please take look at my comment?
Comment Actions Dismissing change request.
Comment Actions LGTM - mostly doc/code comment fix suggestions.
|
Why does multiple uses prevent optimizing it away?