llvm-project/llvm
Sanjay Patel bf5748a1af [x86] fold vector (X > -1) & Y to shift+andn
and (pcmpgt X, -1), Y --> pandn (vsrai X, BitWidth-1), Y

This avoids the -1 constant vector in favor of an arithmetic shift
instruction if it exists (the ISA is still not complete after all
these years...).

We catch this pattern late in combining by matching PCMPGT, so it
should not interfere with more general folds.

Differential Revision: https://reviews.llvm.org/D113603
2021-11-12 08:17:46 -05:00
..
benchmarks
bindings
cmake [TableGen] Emit a warning for unused template args 2021-11-03 11:55:07 +00:00
docs Revert "[DebugInfo] Enforce implicit constraints on `distinct` MDNodes" 2021-11-09 14:27:55 -08:00
examples Revert "Use `GNUInstallDirs` to support custom installation dirs. -- LLVM" 2021-11-02 19:11:44 +01:00
include [DebugInfo] run clang-format on some unformatted files 2021-11-11 18:59:41 -08:00
lib [x86] fold vector (X > -1) & Y to shift+andn 2021-11-12 08:17:46 -05:00
projects Remove unused parallel-libs project 2021-10-21 14:34:39 -07:00
resources
runtimes
test [x86] fold vector (X > -1) & Y to shift+andn 2021-11-12 08:17:46 -05:00
tools [llvm-nm] Demangle Rust symbols 2021-11-12 12:46:59 +01:00
unittests [LoopInfo] Fix function getInductionVariable 2021-11-11 16:22:42 +08:00
utils [gn build] Fix Android compiler-rt targets 2021-11-11 18:41:18 -08:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
README.txt
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.