Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Aiden Grossman b11881e5da
[BranchFolding] Fold away subsequent identical branches
If we have a BB that has a single conditional branch instruction it that
is identical to the previous block's branch instruction, we can delete
the BB as it is redundant.

This doesn't directly impact performance as such instructions are never
executed, but this can help decrease code size which can help with
overall icache pressure (though likely only slightly). The biggest
impact would probably be fitting more instructions into a single cache
line. This is probably almost a no-op with PLO but definitely doesn't
hurt.

Fixes #202763.

Reviewers: RKSimon, arsenm, krzysz00, topperc, lei137

Pull Request: https://github.com/llvm/llvm-project/pull/203110
2026-07-21 16:21:20 -07:00
.ci Add macOS premerge check workflow (#207435) 2026-07-17 10:22:44 -07:00
.github workflows/issue-release-workflow: Allow multiple URLs in /cherry-pick commands. (#211050) 2026-07-21 13:30:31 -07:00
bolt [MC][AArch64] Add .cfi_set_ra_state for PAuth_LR (#209949) 2026-07-21 14:22:36 -07:00
clang [NVPTX] Support short entry param pointers (#206512) 2026-07-21 23:10:13 +00:00
clang-tools-extra [clang-tidy][docs] Remove obsolete doc8 instructions. NFC. (#210576) 2026-07-21 02:11:20 +00:00
cmake Bump version to 24.0.0git (#209473) 2026-07-14 09:21:03 -04:00
compiler-rt [Darwin][TSan] Fix race in mach_vm_deallocate interceptor (#210716) 2026-07-21 14:08:51 +01:00
cross-project-tests [DTLTO] Forward loop interchange to DTLTO remote compilations (#208591) 2026-07-21 19:27:15 +01:00
flang [flang][cuda] Add option for allocator registration function to CUFAddConstructor (#211098) 2026-07-21 20:41:14 +00:00
flang-rt [flang][cuda] Fix device-variable leaks and reset-safe cleanup (#209865) 2026-07-20 03:59:27 -07:00
libc [libc] Migrate printf_core from stdio/ to __support/. (#208303) 2026-07-21 14:35:24 -07:00
libclc [CMake] Warn when the version of CMake is older than 3.31.0 (#204203) 2026-06-29 11:16:27 -07:00
libcxx [PAC][libc++] Fix build with ptrauth_calls feature (#211033) 2026-07-21 19:12:00 +00:00
libcxxabi [libc++] Partially revert #208330 (#209928) 2026-07-16 08:15:30 -04:00
libsycl [libsycl][NFC] Move the cmake msvc DLL check (#193485) 2026-07-20 16:55:25 +02:00
libunwind [libunwind] Fix exposure of UNW_AARCH64_RA_SIGN_STATE through _Unwind_GetGR (#209947) 2026-07-20 11:17:14 -07:00
lld [lld][WebAssembly] Preserve segment linking flags in --relocatable output (#210747) 2026-07-21 08:34:15 -07:00
lldb [lldb-dap] Migrate lldb-dap events tests. (#209285) 2026-07-21 17:12:19 +01:00
llvm [BranchFolding] Fold away subsequent identical branches 2026-07-21 16:21:20 -07:00
llvm-libgcc [docs] Finish misc MyST migration (#210209) 2026-07-17 11:56:59 -07:00
mlir [flang][acc] Emit unified declare globals as extern. (#210757) 2026-07-21 12:59:01 -07:00
offload [OFFLOAD][L0] Fix PatternSize assert in L0QueueTy::memoryFill (#210867) 2026-07-21 11:20:16 +02:00
openmp [OpenMP] Simplify GNU strerror_r check for Android (#148990) 2026-07-19 01:28:10 -04:00
orc-rt [orc-rt] Fix wrapper-call managed-code token lifetime (#210686) 2026-07-20 21:27:57 +10:00
polly [LoopInfo] Replace raw loop-container accessors with semantic operations (#210653) 2026-07-21 07:01:19 +00:00
runtimes Reapply "Skipping host target exports during cross-compilation" (#210… (#210496) 2026-07-20 10:47:59 -07:00
third-party Fix a warning and an uninitialized variable in benchmark (#200927) 2026-06-02 13:49:06 -07:00
utils [libc] Migrate printf_core from stdio/ to __support/. (#208303) 2026-07-21 14:35:24 -07:00
.clang-format
.clang-format-ignore [Docs] Update coding standard for TD files (#200848) 2026-06-01 21:35:58 +01:00
.clang-tidy Add default empty header filter regex to root .clang-tidy (#167386) 2025-11-11 01:36:25 +03:00
.git-blame-ignore-revs Add "Split clang/lib/CodeGen/CGBuiltin.cpp" to .git-blame-ignore-revs (#203419) 2026-06-12 12:03:28 +01:00
.gitattributes [libclang/python] Enable packaging clang python bindings (#125806) 2025-11-24 17:21:24 -08:00
.gitignore gitignore: Add emacs lock files (#205055) 2026-06-22 18:19:29 +02:00
.mailmap mailmap: Add entries for Peter Collingbourne. (#210526) 2026-07-18 11:02:06 -07:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.TXT
pyproject.toml [docs] Create utils/docs (#203962) 2026-06-24 15:12:48 -04:00
README.md
SECURITY.md [SECURITY.md] add pointers to "what is a security issue" (#177372) 2026-01-22 17:19:09 -07:00

The LLVM Compiler Infrastructure

OpenSSF Scorecard OpenSSF Best Practices libc++

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.

Getting the Source Code and Building LLVM

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.

Getting in touch

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.