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"
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This revision is now accepted and ready to land.Oct 28 2022, 3:08 PM
Closed by commit rGe5cb0ee3836a: [mlir][sparse] run canonicalization pass after DenseOpBufferize. (authored by Peiming). · Explain WhyOct 28 2022, 6:00 PM
This revision was automatically updated to reflect the committed changes.