llvm-project/llvm
Stanislav Mekhanoshin 832c87b4fb [AMDGPU] Use S_BITCMP0_* to replace AND in optimizeCompareInstr
These can be used for reversed conditions if result of the AND
is unused except in the compare:

s_cmp_eq_u32 (s_and_b32 $src, 1), 0 => s_bitcmp0_b32 $src, 0
s_cmp_eq_i32 (s_and_b32 $src, 1), 0 => s_bitcmp0_b32 $src, 0
s_cmp_eq_u64 (s_and_b64 $src, 1), 0 => s_bitcmp0_b64 $src, 0
s_cmp_lg_u32 (s_and_b32 $src, 1), 1 => s_bitcmp0_b32 $src, 0
s_cmp_lg_i32 (s_and_b32 $src, 1), 1 => s_bitcmp0_b32 $src, 0
s_cmp_lg_u64 (s_and_b64 $src, 1), 1 => s_bitcmp0_b64 $src, 0

Differential Revision: https://reviews.llvm.org/D109099
2021-09-02 09:38:01 -07:00
..
benchmarks
bindings
cmake [CMake] Remove unneeded -Wdelete-non-virtual-dtor availability check 2021-08-31 11:19:04 -07:00
docs Revert @llvm.isnan intrinsic patchset. 2021-09-02 13:53:56 +03:00
examples [examples] Fix Kaleidoscope for Windows 2021-08-19 13:20:51 +10:00
include [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00
lib [AMDGPU] Use S_BITCMP0_* to replace AND in optimizeCompareInstr 2021-09-02 09:38:01 -07:00
projects
resources
runtimes [libomptarget][amdcgn] Only add opt/llvm-link dependency if TARGET is available 2021-08-30 17:32:11 +02:00
test [AMDGPU] Use S_BITCMP0_* to replace AND in optimizeCompareInstr 2021-09-02 09:38:01 -07:00
tools [llvm-profgen] Deduplicate and improve warning for truncated context 2021-09-02 09:15:38 -07:00
unittests [clang-cl] Emit nicer warning on unknown /arch: arguments 2021-09-02 10:37:32 -04:00
utils [gn build] Port 0922ce56f4 2021-09-01 17:49:53 +00:00
.clang-format
.clang-tidy
.gitattributes Fix: [MCParser] Correctly handle CRLF line ends when consuming line comments 2021-08-17 16:16:19 +01:00
.gitignore
CMakeLists.txt [CMake][NFC] Add comment about new `--gdb-index` option used with `-gsplit-dwarf` 2021-08-30 12:36:55 +03: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.