This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] run canonicalization pass after DenseOpBufferize.
ClosedPublic

Authored by Peiming on Oct 28 2022, 1:45 PM.

Details

Summary

As pointed out by Matthias: "DenseBufferizationPass should be run right after TensorCopyInsertionPass. (Running it after bufferizing the sparse IR is also OK.) The reason for this is that whether copies are needed for not depends on the structure of the program (SSA use-def chains). In particular, running the canonicalizer in-between is problematic because it could introduce new RaW conflicts"

Diff Detail

Event Timeline

Peiming created this revision.Oct 28 2022, 1:45 PM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.Oct 28 2022, 1:45 PM
Peiming edited the summary of this revision. (Show Details)Oct 28 2022, 1:48 PM
Peiming added reviewers: springerm, cota.
aartbik accepted this revision.Oct 28 2022, 3:08 PM
This revision is now accepted and ready to land.Oct 28 2022, 3:08 PM