llvm-project/llvm
Nikita Popov 7bafae55c0 Reapply [CVP] Simplify non-overflowing saturating add/sub
If we can determine that a saturating add/sub will not overflow based
on range analysis, convert it into a simple binary operation. This is
a sibling transform to the existing with.overflow handling.

Reapplying this with an additional check that the saturating intrinsic
has integer type, as LVI currently does not support vector types.

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

llvm-svn: 362263
2019-05-31 20:48:26 +00:00
..
benchmarks
bindings Fix bad go bindings test. 2019-05-31 03:45:11 +00:00
cmake [CMake] Feed BUNDLE_PATH through llvm target wrappers 2019-05-31 17:40:49 +00:00
docs Reapply: IR: add optional type to 'byval' function parameters 2019-05-30 18:48:23 +00:00
examples Add a HowToUseLLJIT example project. 2019-05-22 21:38:41 +00:00
include [PPC] Correctly adjust branch probability in PPCReduceCRLogicals 2019-05-31 16:11:17 +00:00
lib Reapply [CVP] Simplify non-overflowing saturating add/sub 2019-05-31 20:48:26 +00:00
projects
resources
runtimes [CMake] Provide an option to use relative paths in debug info 2019-05-31 01:34:51 +00:00
test Reapply [CVP] Simplify non-overflowing saturating add/sub 2019-05-31 20:48:26 +00:00
tools [MCA] Remove unused fields from BottleneckAnalysis. NFC 2019-05-31 18:01:42 +00:00
unittests Reapply: IR: add optional type to 'byval' function parameters 2019-05-30 18:48:23 +00:00
utils [UpdateTestChecks] Add support for -march=r600 to match existing -march=amdgcn support 2019-05-31 15:05:06 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Revert r361826, as it still breaks LLDB. 2019-05-28 15:04:39 +00:00
CODE_OWNERS.TXT
CREDITS.TXT [test commit] Add my name to the CREDITS.TXT 2019-05-27 07:48:28 +00:00
LICENSE.TXT
LLVMBuild.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.