Previously, we generated inlined implementation for insert operation and
observed MLIR compile time increase due to the size of the main routine. We now
put the insert operation implementation in subroutines and leave the inlining
decision to the MLIR compiler.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Very nice how you have kept the changes compact. I like having the inserts in their own method (since LLVM can decide to inline or not)
and we avoid those big blocks of code for deeper tensors.
Nice job!
mlir/test/Dialect/SparseTensor/sparse_matmul_codegen.mlir | ||
---|---|---|
16 | I usually move these parameters to the left by hand after using the autogen tool | |
24 | and for constants, and stuff that may move, I add -DAG would you mind doing that here Even though we seem to constantly change CHECK tests ;-) |
Add a comment:
// Construct fields and indices arrays from parameters.