| commit | e2a55b8698e93de68e0080181844303cd820a3ae | [log] [tgz] |
|---|---|---|
| author | hev <wangrui@loongson.cn> | Fri Aug 29 16:42:31 2025 +0800 |
| committer | GitHub <noreply@github.com> | Fri Aug 29 16:42:31 2025 +0800 |
| tree | 3eef85cbff46e885d17aac394e7f7316621e2e29 | |
| parent | ffb756dff2d2a7a7131d2edaa4437c03745c532d [diff] |
[LoongArch] Add custom lowering for BCOND and perform BR_CC combine (#147885) This patch attempts to optimize conditional branches by combinding logical operations within the conditions. This enables the selection of more efficient branch instructions. For example, for integers, `blez x` can be used instead of `blt x, (ori, t, 1)`; for floating-point comparisons, dedicated floating-point branch instructions can be used to avoid moving the result to an integer register.
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.