This is an archive of the discontinued LLVM Phabricator instance.

[mlir][gpu] Fix bug in kernel outlining
ClosedPublic

Authored by herhut on Oct 9 2020, 3:13 AM.

Details

Summary

The updated version of kernel outlining did not handle cases correctly
where an operand of a candidate for sinking itself was defined by an operation
that is a sinking candidate. In such cases, it could happen that sunk
operations were inserted in the wrong order, breaking ssa properties.

Diff Detail

Event Timeline

herhut created this revision.Oct 9 2020, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2020, 3:13 AM
herhut requested review of this revision.Oct 9 2020, 3:13 AM
bondhugula added inline comments.
mlir/test/Dialect/GPU/outlining.mlir
197–201

Nit: consider indenting the block.

ftynse accepted this revision.Oct 9 2020, 5:45 AM
This revision is now accepted and ready to land.Oct 9 2020, 5:45 AM
herhut updated this revision to Diff 297213.Oct 9 2020, 6:00 AM

Formatting

herhut marked an inline comment as done.Oct 9 2020, 6:01 AM
This revision was landed with ongoing or failed builds.Oct 9 2020, 6:03 AM
This revision was automatically updated to reflect the committed changes.