This is an archive of the discontinued LLVM Phabricator instance.

[mlir][GPU] Improve constant sinking in kernel outlining
ClosedPublic

Authored by herhut on Sep 28 2020, 12:22 PM.

Details

Summary

The previous implementation did not support sinking simple expressions. In particular,
it is often beneficial to sink dim operations.

Diff Detail

Event Timeline

herhut created this revision.Sep 28 2020, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 28 2020, 12:22 PM
herhut requested review of this revision.Sep 28 2020, 12:22 PM
rriddle added inline comments.Sep 28 2020, 12:27 PM
mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp
79

Drop uses of mlir::, there are several in this revision.

86

nit: Spell out auto here.

herhut marked 2 inline comments as done.Sep 28 2020, 11:44 PM
ftynse accepted this revision.Sep 29 2020, 1:28 AM
ftynse added inline comments.
mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp
64

This function deserves a doc comment

This revision is now accepted and ready to land.Sep 29 2020, 1:28 AM
herhut updated this revision to Diff 294929.Sep 29 2020, 4:21 AM

More comments.

herhut marked an inline comment as done.Sep 29 2020, 4:22 AM
This revision was automatically updated to reflect the committed changes.