diff options
| author | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2021-01-11 16:19:01 +0100 | 
|---|---|---|
| committer | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2021-01-11 21:53:56 +0100 | 
| commit | 32c073acb320db3b22ca76b1e21dd688a70b50e8 (patch) | |
| tree | 1cb1268241e019ba4093aeee737a15374201b519 /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | 288f3fc5dfee0c51fc00fe10a985f93c505073eb (diff) | |
| download | llvm-32c073acb320db3b22ca76b1e21dd688a70b50e8.zip llvm-32c073acb320db3b22ca76b1e21dd688a70b50e8.tar.gz llvm-32c073acb320db3b22ca76b1e21dd688a70b50e8.tar.bz2 | |
[GlobalISel] Map extractelt to G_EXTRACT_VECTOR_ELT
Before this patch there was generic mapping from vector_extract
to G_EXTRACT_VECTOR_ELT added in SelectionDAGCompat.td. That
mapping is now replaced by a mapping from extractelt instead.
The reasoning is that vector_extract is marked as deprecated,
so it is assumed that a majority of targets will use extractelt
and not vector_extract (and that the long term solution for all
targets would be to use extractelt).
Targets like AArch64 that still use vector_extract can add an
additional mapping from the deprecated vector_extract as target
specific tablegen definitions. Such a mapping is added for AArch64
in this patch to avoid breaking tests.
When adding the extractelt => G_EXTRACT_VECTOR_ELT mapping we
triggered some new code paths in GlobalISelEmitter, ending up in
an assert when trying to import a pattern containing EXTRACT_SUBREG
for ARM. Therefore this patch also adds a "failedImport" warning
for that situation (instead of hitting the assert).
Differential Revision: https://reviews.llvm.org/D93416
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
