llvm-project/llvm
Philip Reames b775333068 [RISCV] Fold low 12 bits into instruction during frame index elimination
Fold the low 12 bits of an immediate offset into the offset field of the using instruction. That using instruction will be a load, store, or addi which performs an add of a signed 12-bit immediate as part of it's operation. Splitting out the low bits allows the high bits to be generated via a single LUI instead of needing an LUI/ADDI pair.

The codegen effect of this is mostly converting cases where "split addi" kicks in to using LUI + a folded offset. There are a couple of straight dynamic instruction count wins, and using a canonical LUI is probably better than a chain of SP adds if the dynamic instruction count is equal.

Differential Revision: https://reviews.llvm.org/D139037
2022-12-02 11:54:06 -08:00
..
benchmarks
bindings [AggressiveInstCombine] Remove legacy PM pass 2022-11-15 14:35:15 -08:00
cmake [CMake] Use LLVM_TARGET_TRIPLE in runtimes 2022-11-29 04:08:24 +00:00
docs Make -fsanitize=scudo use scudo_standalone. Delete check-scudo. 2022-12-02 11:29:41 -08:00
examples [Bye] Remove legacy pipeline registration 2022-11-18 13:47:19 -08:00
include TargetTransformInfo: convert Optional to std::optional 2022-12-02 11:42:15 -08:00
lib [RISCV] Fold low 12 bits into instruction during frame index elimination 2022-12-02 11:54:06 -08:00
projects
resources
runtimes [runtimes] Add check-profile dependencies to runtimes 2022-11-30 11:14:37 -08:00
test [RISCV] Fold low 12 bits into instruction during frame index elimination 2022-12-02 11:54:06 -08:00
tools Support: Convert Program APIs to std::optional 2022-12-01 17:00:44 -05:00
unittests AttributeParser: Convert Optional to std::optional 2022-12-02 07:43:18 +00:00
utils Add update_any_test_checks.py convenience utility 2022-12-01 17:25:53 +01:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Move googletest to the third-party directory 2022-11-09 15:28:08 -08: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.