Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Sudharsan Veeravalli 6b408bf0da
[RISCV] Avoid forming Zilsd pairs with x0 for non-x0 register classes (#211019)
The pre-RA Zilsd optimizer allowed a pair when both stored values came
from the same virtual register if that virtual register was defined by a
copy from X0. This is only valid when the virtual register class can
actually contain X0.

Check the virtual register class before treating the value as `x0_pair`.
This prevents forming an invalid paired store for register classes such
as `GPRNoX0`.

Without this change we were hitting the following assertion in
`RISCVLoadStoreOptimizer`:

```
assert(
    FirstReg != SecondReg &&
    "First register and second register is impossible to be same register");
```
2026-07-22 10:04:23 +05:30
.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 [BOLT] Implement platform independent distribution and shuffle algorithm (#206554) 2026-07-22 11:25:26 +08:00
clang [clang] Switch to Default PIE on FreeBSD (#206139) 2026-07-22 11:26:36 +08: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 [compiler-rt][rtsan] Loosen requirements of halt_on_error test (#210734) 2026-07-21 18:51:17 -07:00
cross-project-tests [DTLTO] Forward loop interchange to DTLTO remote compilations (#208591) 2026-07-21 19:27:15 +01:00
flang [clang] Switch to Default PIE on FreeBSD (#206139) 2026-07-22 11:26:36 +08: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] Change DynamicLoaderDarwin::Segment::name type (#210797) 2026-07-21 17:06:56 -07:00
llvm [RISCV] Avoid forming Zilsd pairs with x0 for non-x0 register classes (#211019) 2026-07-22 10:04:23 +05:30
llvm-libgcc [docs] Finish misc MyST migration (#210209) 2026-07-17 11:56:59 -07:00
mlir [CIR][OpenMP] Add host op filtering pass to CIR pipeline (#209592) 2026-07-21 20:41:03 -04: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] Run controller-call continuations from Session (#211166) 2026-07-22 14:13:10 +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 Enforce Unix line endings for Clang/LLVM/MLIR projects (#161460) 2025-10-02 06:09:12 -07:00
.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.