This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Add another call to ConvertVectorToLLVMPass, to lower the vector operations added by ConvertMathToLLVMPass.
ClosedPublic

Authored by bixia on Dec 13 2022, 10:42 AM.

Diff Detail

Event Timeline

bixia created this revision.Dec 13 2022, 10:42 AM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Dec 13 2022, 10:42 AM
aartbik added inline comments.Dec 13 2022, 10:22 PM
mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
82

we had this at L75, was that the wrong place, or do we really need it twice?

bixia added inline comments.Dec 14 2022, 8:03 AM
mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
82

I can't move line75 to after line76, ConvertVectorToLLVM left some ops unconverted when I did that.
It seems that MemRefToLLVM relies on ConvertVectorToLLVM.

aartbik accepted this revision.Dec 14 2022, 1:26 PM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
82

Can we document that. Even a

pm.addPass(createConvertVectorToLLVMPass(options.lowerVectorToLLVMOptions())); // repeat

or so would flag that we at least thought about having the same pass twice

This revision is now accepted and ready to land.Dec 14 2022, 1:26 PM
bixia updated this revision to Diff 482983.Dec 14 2022, 1:47 PM

Add document for the repeated pass.

bixia marked an inline comment as done.Dec 14 2022, 2:00 PM