llvm-project/llvm
Philip Reames 0129cd5035 Use deref facts derived from minimum object size of allocations
This change should be fairly straight forward. If we've reached a call, check to see if we can tell the result is dereferenceable from information about the minimum object size returned by the call.

To control compile time impact, I'm only adding the call for base facts in the routine. getObjectSize can also do recursive reasoning, and we don't want that general capability here.

As a follow up patch (without separate review), I will plumb through the missing TLI parameter. That will have the effect of extending this to known libcalls - malloc, new, and the like - whereas currently this only covers calls with the explicit allocsize attribute.

Differential Revision: https://reviews.llvm.org/D90341
2020-12-03 15:01:14 -08:00
..
benchmarks
bindings Adding PoisonValue for representing poison value explicitly in IR 2020-11-25 17:33:51 -07:00
cmake Bump MSVC required version to 19.14 2020-12-03 10:09:18 -08:00
docs [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
examples llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
include [BasicAA] Move newline to dump from printer 2020-12-03 14:35:43 -08:00
lib Use deref facts derived from minimum object size of allocations 2020-12-03 15:01:14 -08:00
projects llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
resources
runtimes
test Use deref facts derived from minimum object size of allocations 2020-12-03 15:01:14 -08:00
tools [NFC] Reduce include files dependency. 2020-12-03 18:25:05 +03:00
unittests Revert "Switch to std::is_trivially_move_constructible and std::is_trivially_copy_constructible" 2020-12-03 19:58:06 +00:00
utils Revert D90844 "[TableGen][SchedModels] Fix read/write variant substitution" 2020-12-03 14:24:29 -08:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt repair cygwin build 2020-12-03 11:49:16 -05:00
CODE_OWNERS.TXT [CODE_OWNERS.TXT] Update to include yours truly as the TableGen owner 2020-11-12 09:49:00 -05: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.