New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mlir] Sparse Vectorization Pass triggers assertion failure "vectorLength > 0" #59970
Comments
@llvm/issue-subscribers-mlir-sparse |
@aartbik : is this part of your area? |
This seems WAI. The assertion reports that it expects "vectorLength > 0". The proper use of this flag should be -sparse-vectorization="vl=16" (or your preferred vector length). Is there any other way of prompting this back to the user you would prefer? |
I think we should sanitize the option in the in the pass and signalPassFailure() and return, before passing it to an API that will assert. |
sgtm, will make it so |
After Mehdi's suggestion, pass now cleanly reports failure, no assert crash: // -----// IR Dump After SparseVectorization Failed (sparse-vectorization) //----- // |
Nice :) thanks! |
Fixes llvm/llvm-project#59970 Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D142290
MLIR built at commit a0138390
Reproduced with:
mlir-opt --sparse-vectorization temp.mlir
temp.mlir:
trace:
The text was updated successfully, but these errors were encountered: