diff options
author | Quentin Colombet <quentin.colombet@gmail.com> | 2019-10-11 20:22:47 +0000 |
---|---|---|
committer | Quentin Colombet <quentin.colombet@gmail.com> | 2019-10-11 20:22:47 +0000 |
commit | 7720f1149867ac11543470a945438df59dcd2824 (patch) | |
tree | 0992aff2a7de7430d54b5e7dc7ca4a881a51b83c /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py | |
parent | 03fbde6d84704e32eef204c1e59a2c26350aacde (diff) | |
download | bcm5719-llvm-7720f1149867ac11543470a945438df59dcd2824.tar.gz bcm5719-llvm-7720f1149867ac11543470a945438df59dcd2824.zip |
[MachineIRBuilder] Fix an assertion failure with buildMerge
Teach buildMerge how to deal with scalar to vector kind of requests.
Prior to this patch, buildMerge would issue either a G_MERGE_VALUES
when all the vregs are scalars or a G_CONCAT_VECTORS when the destination
vreg is a vector.
G_CONCAT_VECTORS was actually not the proper instruction when the source
vregs were scalars and the compiler would assert that the sources must
be vectors. Instead we want is to issue a G_BUILD_VECTOR when we are
in this situation.
This patch fixes that.
llvm-svn: 374588
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions