llvm-project/llvm
Kazu Hirata e2398a4d7c [Analysis] Introduce getStaticBonusApplied (NFC)
InlineCostCallAnalyzer encourages inlining of the last call to the
static function by subtracting LastCallToStaticBonus from Cost.

This patch introduces getStaticBonusApplied to make available the
amount of LastCallToStaticBonus applied.

The intent is to allow the module inliner to determine whether
inlining a given call site is expected to reduce the caller size with
an expression like:

  IC.getCost() + IC.getStaticBonusApplied() < 0

This patch does not add a use of getStaticBonus yet.

Differential Revision: https://reviews.llvm.org/D134373
2022-09-25 23:21:40 -07:00
..
benchmarks
bindings [ConstantExpr] Remove fneg expression 2022-09-08 10:24:55 +02:00
cmake Fix Z3 version detection regexp 2022-09-23 16:24:51 -03:00
docs [VP][RISCV] Add vp.sqrt intrinsic and RISC-V support. 2022-09-26 10:47:40 +08:00
examples
include [Analysis] Introduce getStaticBonusApplied (NFC) 2022-09-25 23:21:40 -07:00
lib [Analysis] Introduce getStaticBonusApplied (NFC) 2022-09-25 23:21:40 -07:00
projects
resources
runtimes [NFC] Fix typo in comment 2022-09-20 17:22:08 -04:00
test [LoongArch] Add codegen support for strict_fsetccs and any_fsetcc 2022-09-26 13:05:36 +08:00
tools [llvm] Use std::underlying_type_t (NFC) 2022-09-25 23:14:15 -07:00
unittests [ORC] Update LinkGraph unit tests for API change in 75404e9ef8. 2022-09-25 22:02:15 -07:00
utils [llvm] Use std::underlying_type_t (NFC) 2022-09-25 23:14:15 -07:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [NFC] Remove trailing whitespace in CMake file 2022-09-22 16:15:46 -04: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.