This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] fixed bug in verification
ClosedPublic

Authored by aartbik on Jul 26 2021, 5:34 PM.

Details

Summary

The order of testing in two sparse tensor ops was incorrect,
which could cause an invalid cast (crashing the compiler instead
of reporting the error). This revision fixes that bug.

Diff Detail

Event Timeline

aartbik created this revision.Jul 26 2021, 5:34 PM
aartbik requested review of this revision.Jul 26 2021, 5:34 PM
gussmith23 accepted this revision.Jul 27 2021, 6:23 AM

Great catch!

This revision is now accepted and ready to land.Jul 27 2021, 6:23 AM
This revision was automatically updated to reflect the committed changes.