This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Pass Scalable argument to VectorType::get in Bitcode Reader
ClosedPublic

Authored by ctetreau on Jan 21 2020, 2:52 PM.

Details

Summary
  • Pass the Scalability test to VectorType::get in order to be

able to deserialize bitcode that contains scalable vector operations

Diff Detail

Event Timeline

ctetreau created this revision.Jan 21 2020, 2:52 PM
Herald added a project: Restricted Project. · View Herald Transcript
ctetreau marked an inline comment as done.Jan 21 2020, 2:58 PM
ctetreau added inline comments.
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
4175

This is the source of the bug from last patch. I passed the length of Vec1, not of the mask, which is not in line with the documented behavior of shufflevector or the original code.

efriedma accepted this revision.Jan 21 2020, 3:20 PM

If you're reposting the "same" patch because it was reverted, usually you want to reopen the existing revision, rather than post a new one. (Phabricator should give you a "reopen" option for closed reviews.) That said, at this point, it's not worth going back to fix that; there wasn't any substantial discussion posted on D72792.

LGTM

This revision is now accepted and ready to land.Jan 21 2020, 3:20 PM

This is a resubmission of https://reviews.llvm.org/D72792 having fixed the test failures.

This revision was automatically updated to reflect the committed changes.