This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Fix error handling in VectorizationState::initState
ClosedPublic

Authored by springerm on Dec 19 2022, 1:00 AM.

Details

Summary

This function used to create new ops even if the vectorization failed. Those ops were then folded away. This caused a failure of the GreedyPatternRewriter, which no longer terminated (each time the IR is modified => one more iteration).

Diff Detail

Event Timeline

springerm created this revision.Dec 19 2022, 1:00 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Dec 19 2022, 1:00 AM
nicolasvasilache accepted this revision.Dec 19 2022, 1:18 AM
This revision is now accepted and ready to land.Dec 19 2022, 1:18 AM