diff options
| author | Dominik Montada <dominik.montada@hightec-rt.com> | 2020-04-15 10:06:13 +0200 |
|---|---|---|
| committer | Dominik Montada <dominik.montada@hightec-rt.com> | 2020-04-15 17:19:14 +0200 |
| commit | bddac41b9f1ae80b56dace7d55cd81a07147ff3d (patch) | |
| tree | 0300e0155238e19807ec8bfec4b1520d05bcaaad /lldb/packages/Python/lldbsuite/test/configuration.py | |
| parent | 7c1355096794bcf07d59395825c83440d726c134 (diff) | |
| download | llvm-bddac41b9f1ae80b56dace7d55cd81a07147ff3d.zip llvm-bddac41b9f1ae80b56dace7d55cd81a07147ff3d.tar.gz llvm-bddac41b9f1ae80b56dace7d55cd81a07147ff3d.tar.bz2 | |
[GlobalISel] Fix invalid combine of unmerge(merge) with intermediate cast
Summary:
The combine for unmerge(cast(merge)) is only valid for vectors, but was
missing a corresponding check. Add a check that the operands are vectors
to avoid an invalid combine.
Without this check, the combiner would emit incorrect code for scalars
and pointers because the artifact cast (trunc/ext) only affects bits at
the end of the type, while this combine assumes that the casted bits
appear between meaningful bits.
This also uncovered a segmentation fault in the AMDGPU
InstructionSelector. The tests triggering this bug have been moved to
their own file and a check for the segmentation fault has been added.
Reviewers: arsenm, dsanders, aemerson, paquette, aditya_nandakumar
Reviewed By: arsenm
Subscribers: tpr, jvesely, wdng, nhaehnle, rovka, kerbowa, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D78191
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions
