| commit | a84ae9c2dd1fbec20d00896fdd879f57c7c49245 | [log] [tgz] |
|---|---|---|
| author | David Green <david.green@arm.com> | Fri Jul 11 08:01:14 2025 +0100 |
| committer | GitHub <noreply@github.com> | Fri Jul 11 08:01:14 2025 +0100 |
| tree | 40bda2b691954237f46209cd5e39c8d1ac5bb377 | |
| parent | 9de657abaf3d60918cb10edbbada3c4b520b0b0c [diff] |
[AArch64] Use mov imm pseudo instructions in madd combine. (#147510) The usual path for lowering immediates in AArch64 is to generate a MOVi32imm or MOVi64imm pseudo instruction, that can be moved / rematerialized around as required, being expanded into one or multiple instructions after register allocation. The code for the MachineCombiner was generating MOVN/ORR/MOVZ directly. This converts them to use the pseudos, allowing the generated immediates to be materialized if required. The code is hopefully simpler as a result, and the Sub and Add patterns have been combined to reduce duplication.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.