1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
Go to file
Dávid Bolvanský 6682491496 [SimplifyCFG] Optimize CFG when null is passed to a function with nonnull argument
Example:

```
__attribute__((nonnull,noinline)) char * pinc(char *p)  {
  return ++p;
}

char * foo(bool b, char *a) {
       return pinc(b ? 0 : a);

}
```

optimize to

```
char * foo(bool b, char *a) {
       return pinc(a);

}
```

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D94180
2021-01-15 23:53:43 +01:00
benchmarks
bindings [Go] Fix bindings/go/llvm/IRBindings.cpp 2020-12-16 10:09:58 -08:00
cmake Revert "[lldb][docs] Use sphinx instead of epydoc to generate LLDB's Python reference" 2021-01-15 14:07:45 +01:00
docs [Debuginfo][DW_OP_implicit_pointer] (1/7) Support for DW_OP_LLVM_implicit_pointer 2021-01-15 14:45:04 +05:30
examples [Orc] Fix OrcV2Examples after D94690 2021-01-15 13:45:46 +01:00
include [ADT][Support] Fix C4146 error from MSVC 2021-01-15 14:34:14 -08:00
lib [SimplifyCFG] Optimize CFG when null is passed to a function with nonnull argument 2021-01-15 23:53:43 +01:00
projects llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
resources
runtimes [CMake] Split the target side of runtimes build 2021-01-11 23:39:36 -08:00
test [SimplifyCFG] Optimize CFG when null is passed to a function with nonnull argument 2021-01-15 23:53:43 +01:00
tools [yaml2obj/obj2yaml] - Refine handling of SHT_GNU_verdef sections. 2021-01-15 12:40:42 +03:00
unittests Revert "Revert "ADT: Fix reference invalidation in SmallVector..."" 2021-01-15 14:27:48 -08:00
utils [llvm] Remove redundant return and continue statements (NFC) 2021-01-14 20:30:34 -08:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [llvm] [cmake] Remove obsolete /usr/local hack for *BSD 2021-01-12 19:26:04 +01:00
CODE_OWNERS.TXT Change XCore code owner. 2021-01-14 12:13:48 +00:00
configure
CREDITS.TXT [NFC] Add contributors names to CREDITS.TXT 2020-10-07 13:22:55 -04:00
LICENSE.TXT
llvm.spec.in
README.txt
RELEASE_TESTERS.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.