llvm-project/llvm
Simon Pilgrim 6ce08672fb [X86][AVX] lowerShuffleAsLanePermuteAndPermute - fully populate the lane shuffle mask (PR40730)
As detailed on PR40730, we are not correctly filling in the lane shuffle mask (D53148/rL344446) - we fill in for the correct src lane but don't add it to the correct mask element, so any reference to the correct element is likely to see an UNDEF mask index.

This allows constant folding to propagate UNDEFs prior to the lane mask being (correctly) lowered to vperm2f128.

This patch fixes the issue by fully populating the lane shuffle mask - this is more than is necessary (if we only filled in the required mask elements we might be able to match other shuffle instructions - broadcasts etc.), but its the most cautious approach as this needs to be cherrypicked into the 8.0.0 release branch.

Differential Revision: https://reviews.llvm.org/D58237

llvm-svn: 354117
2019-02-15 11:39:21 +00:00
..
benchmarks
bindings [NewPM] Second attempt at porting ASan 2019-02-13 22:22:48 +00:00
cmake [llvm] [cmake] Provide split include paths in LLVMConfig 2019-02-13 08:34:40 +00:00
docs Stop enabling clang-tools-extra automatically when clang is in LLVM_ENABLE_PROJECTS 2019-02-14 20:26:35 +00:00
examples Fix compilation of examples after 13680223b9 / r352827 2019-02-01 03:23:42 +00:00
include [NFC] Tweak SplitBlockAndInsertIfThen to use existing ThenBlock 2019-02-15 08:18:00 +00:00
lib [X86][AVX] lowerShuffleAsLanePermuteAndPermute - fully populate the lane shuffle mask (PR40730) 2019-02-15 11:39:21 +00:00
projects Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
resources
runtimes [build] Remove a stray comment. NFC 2019-02-12 02:25:27 +00:00
test [X86][AVX] lowerShuffleAsLanePermuteAndPermute - fully populate the lane shuffle mask (PR40730) 2019-02-15 11:39:21 +00:00
tools [llvm-cxxfilt] Fix a comment typo. NFC. 2019-02-15 02:43:14 +00:00
unittests GlobalISel: Add alignment to LegalityQuery MMOs 2019-02-14 22:41:09 +00:00
utils [lit][NFC] Cleanup copy&paste naming mistake 2019-02-15 02:44:52 +00:00
.arcconfig
.clang-format
.clang-tidy Disable tidy checks with too many hits 2019-02-01 11:20:13 +00:00
.gitattributes
.gitignore gitignore: ignore clangd index files. 2019-01-25 14:05:18 +00:00
CMakeLists.txt [CMake] Fix ability to use LLVM_ENABLE_PROJECTS with LLVM_EXTERNAL_PROJECTS 2019-02-14 20:57:17 +00:00
CODE_OWNERS.TXT
CREDITS.TXT Remove a period from CREDITS.TXT (testing email change). NFC 2019-01-19 09:07:38 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in Update structured references to the license to the new license. 2019-01-19 11:30:51 +00:00

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.