llvm-project/llvm
Pirama Arumuga Nainar edcfb47ff6 [DAGCombiner] Do not fold truncate(build_vector(..)) if it creates an illegal type
Summary:
It can be the case that a vector type is legal but the corresponding
scalar type is not legal for an architecture (i8 vs. v16i8 on AArch64).
Check if the scalar type created when folding
  truncate(build_vector(x,y)) -> build_vector(truncate(x),truncate(y))

is legal if we are running after the type legalizer.

This fixes https://github.com/android/ndk/issues/1207.

Reviewers: RKSimon, srhines

Subscribers: kristof.beyls, hiraditya, danielkiss, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76312
2020-03-20 09:20:16 -07:00
..
benchmarks
bindings Add an SDK attribute to DICompileUnit 2020-03-11 14:14:06 -07:00
cmake [CMake] Enable the use of -ffile-prefix-map 2020-03-19 15:14:15 -07:00
docs [CMake] Enable the use of -ffile-prefix-map 2020-03-19 15:14:15 -07:00
examples [ORC] Re-apply 98f2bb4461, enable JITEventListeners in OrcV2, with fixes. 2020-03-19 16:30:08 -07:00
include [InstCombine][X86] simplifyX86immShift - convert variable in-range vector shift by scalar amounts to generic shifts (PR40391) 2020-03-20 15:48:06 +00:00
lib [DAGCombiner] Do not fold truncate(build_vector(..)) if it creates an illegal type 2020-03-20 09:20:16 -07:00
projects
resources
runtimes [runtimes] When COMPILER_RT is enabled, consider SANITIZER prefixes 2020-03-11 14:22:20 -07:00
test [DAGCombiner] Do not fold truncate(build_vector(..)) if it creates an illegal type 2020-03-20 09:20:16 -07:00
tools [llvm-readobj] Allow syms from all sections to match stack size entries 2020-03-20 10:54:18 +00:00
unittests Revert "Cleanup the plumbing for DILineInfoSpecifier. [NFC]" 2020-03-19 17:25:05 -07:00
utils Revert "[TableGen][GlobalISel] Account for HwMode in RegisterBank register sizes" 2020-03-20 11:02:50 +01:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [ValueTypes] Add EVT::isFixedLengthVector 2020-03-19 10:08:17 +00:00
CODE_OWNERS.TXT Remove myself from CODE_OWNERS. 2020-02-25 11:59:29 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Test commit. 2020-03-14 18:08:26 -07:00
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.