llvm-project/llvm
Nemanja Ivanovic a5222aa085 [DAGCombine] Do not remove masking argument to FP16_TO_FP for some targets
As of commit 284f2bffc9, the DAG Combiner gets rid of the masking of the
input to this node if the mask only keeps the bottom 16 bits. This is because
the underlying library function does not use the high order bits. However, on
PowerPC's ELFv2 ABI, it is the caller that is responsible for clearing the bits
from the register. Therefore, the library implementation of __gnu_h2f_ieee will
return an incorrect result if the bits aren't cleared.

This combine is desired for ARM (and possibly other targets) so this patch adds
a query to Target Lowering to check if this zeroing needs to be kept.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=49092

Differential revision: https://reviews.llvm.org/D96283
2021-02-09 06:33:48 -06:00
..
benchmarks
bindings
cmake [CMake] [MinGW] Enable use of LLVM_USE_SANITIZER in a MinGW environment 2021-02-08 23:04:50 +02:00
docs [Docs] Fix Typo 2021-02-08 23:45:32 -08:00
examples [examples] Fix Target does not support MC emission in ParallelJIT 2021-02-04 22:44:46 +05:30
include [DAGCombine] Do not remove masking argument to FP16_TO_FP for some targets 2021-02-09 06:33:48 -06:00
lib [DAGCombine] Do not remove masking argument to FP16_TO_FP for some targets 2021-02-09 06:33:48 -06:00
projects
resources
runtimes [CMake] Split the target side of runtimes build 2021-01-11 23:39:36 -08:00
test [DAGCombine] Do not remove masking argument to FP16_TO_FP for some targets 2021-02-09 06:33:48 -06:00
tools Revert "Renovate CMake files in the `llvm-exegesis` tool." 2021-02-08 19:12:08 -05:00
unittests Allow SmallPtrSet to be used with a std::insert_iterator 2021-02-05 16:12:47 -05:00
utils [gn build] Port 40c261c41c 2021-02-09 09:19:31 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Turn on the new pass manager by default 2021-02-03 14:37:46 -08:00
CODE_OWNERS.TXT Change XCore code owner. 2021-01-14 12:13:48 +00:00
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.