[llvm-link] fix IRMover returning wrong modified vector type
authorNashe Mncube <nashe.mncube@arm.com>
Fri, 19 Feb 2021 11:34:58 +0000 (11:34 +0000)
committerNashe Mncube <nashe.mncube@arm.com>
Mon, 22 Feb 2021 11:29:42 +0000 (11:29 +0000)
commit0327cfe2f7620d70cd44082a172e58872ffe4105
treeff3bd51b654c381d7cf2ba31af4fb8fd4eb5dd79
parentb5b3243bf783f07415c5e2838fa1a948e126f643
[llvm-link] fix IRMover returning wrong modified vector type

Modified scalable vector types weren't correctly returned at link-time.
The previous behaviour was a FixedVectorType was constructed
when expecting a ScalableVectorType. This commit has added a regression
test which re-creates the failure as well as a fix.

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D96953
llvm/lib/Linker/IRMover.cpp
llvm/test/Linker/Inputs/fixed-vector-type-construction.ll [new file with mode: 0644]
llvm/test/Linker/scalable-vector-type-construction.ll [new file with mode: 0644]