llvm-project/llvm
Sanjay Patel 6592bcecd4 [x86] invert a vector select IR canonicalization with a binop identity constant
This is an intentionally limited/different form of D90113.
That patch bravely tries to generalize folds where we pull
a binop into the arms of a select:
N0 + (Cond ? 0 : FVal) --> Cond ? N0 : (N0 + FVal)
...but it is not universally profitable.

This is the inverse of IR canonicalization as discussed in
D113442.

We know that this transform is not entirely profitable even
within x86, so we only handle x86 vector fadd/fsub as a 1st
step. The intent is to prevent AVX512 regressions as mentioned
in D113442.

The plan is to port this to DAGCombiner (so it will eventually
look more like D90113) and add more types/cases in pieces with
many more tests to verify that we are seeing improvements.

Differential Revision: https://reviews.llvm.org/D118644
2022-02-02 08:17:53 -05:00
..
benchmarks
bindings
cmake [docs] Remove hard-coded version numbers from sphinx configs 2022-02-01 23:14:12 -08:00
docs [Docs][NFC] Contributing.rst: fix wording 2022-02-02 13:49:03 +01:00
examples Cleanup header dependencies in LLVMCore 2022-02-02 06:54:20 +01:00
include [LAA] Add Memory dependence remarks. 2022-02-02 12:07:51 +00:00
lib [x86] invert a vector select IR canonicalization with a binop identity constant 2022-02-02 08:17:53 -05:00
projects
resources
runtimes [CMake] Passthrough OSX CMake options to builtins and runtimes 2022-01-21 16:54:22 -08:00
test [x86] invert a vector select IR canonicalization with a binop identity constant 2022-02-02 08:17:53 -05:00
tools [llvm-reduce] Display all relevant options in -help 2022-02-02 09:44:56 +01:00
unittests Re-apply 3fab2d138e, now with a triple added 2022-02-02 11:04:00 +00:00
utils Bump the trunk major version to 15 2022-02-01 23:54:52 -08:00
.clang-format
.clang-tidy
.gitattributes [split-file] Respect input file's line endings 2022-01-21 18:45:03 -06:00
.gitignore
CMakeLists.txt Bump the trunk major version to 15 2022-02-01 23:54:52 -08: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.