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 15 2020, 10:47 AM.

Details

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

able to deserialize bitcode that contains scalable vector operations

Change-Id: I37fe5b1c0c237a9153130deefdc1a6d595c7f12e

Diff Detail

Event Timeline

ctetreau created this revision.Jan 15 2020, 10:47 AM
Herald added a project: Restricted Project. · View Herald Transcript

Please add a testcase to make sure we can round-trip from .ll->.bc->.ll.

llvm/lib/Bitcode/Reader/BitcodeReader.cpp
2640

getElementCount().

ctetreau updated this revision to Diff 238515.Jan 16 2020, 8:41 AM

Added test for new vscale deserialization behavior

ctetreau marked an inline comment as done.Jan 16 2020, 8:43 AM
sdesmalen accepted this revision.Jan 16 2020, 8:58 AM

Thanks for these fixes. LGTM!

llvm/lib/Bitcode/Reader/BitcodeReader.cpp
4173

nit: You can write Vec->getType()->getVectorElementCount() without having to do the cast first.

4175

nit: same here.

This revision is now accepted and ready to land.Jan 16 2020, 8:58 AM

Thanks for doing code review. I don't have commit access, can somebody please land this for me? Thanks!

This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Jan 17 2020, 11:51 AM

This breaks check-llvm everywhere, e.g. http://45.33.8.238/linux/7807/step_12.txt

Please take a look, and if it takes a while, please revert while you investigate.