Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Karthika Devi C df1838f5d9
[Polly] Skip vectorize.enable for FP loops with dist=1 dependences (#205756)
When -polly-annotate-metadata-vectorize is active, Polly marks its
generated loops with llvm.loop.vectorize.enable=true. This is harmful
for loops with a loop-carried dependence of distance 1 that involve
floating-point operations: the Loop Vectorizer reorders FP operations
(e.g. scalar reduction like q = factor*q), producing results that differ
from the sequential scalar reference and causing correctness failures.

Two changes are made:

1. IslAst.cpp: add PollyVectorizeMetadata to the PerformParallelTest
gate so that dependence-distance computation is performed whenever
-polly-annotate-metadata-vectorize is passed, not only when
-polly-parallel or a vectorizer is active.

2. IslNodeBuilder.cpp / LoopGenerators.cpp: when a loop has a dist=1
dependence involving FP operations, omit the vectorize.enable annotation
entirely. This lets the Loop Vectorizer apply its own cost model and
legality checks decide.
2026-07-15 15:51:38 +05:30
.ci Revert "[lldb][Windows][CI] split steps (#206946)" (#208519) 2026-07-09 21:45:47 +01:00
.github [libc][ci] Add qemu armhf overlay tests to precommit CI. (#203369) 2026-07-14 16:09:02 -04:00
bolt [BOLT] Remove ability to use external shell 2026-07-14 18:12:11 -07:00
clang [Driver][DirectX] Add /Qsource_in_debug_module flag (#204415) 2026-07-15 14:52:28 +05:00
clang-tools-extra [clangd] Use unique_function for config handlers (#203008) 2026-07-15 01:58:57 -04:00
cmake Bump version to 24.0.0git (#209473) 2026-07-14 09:21:03 -04:00
compiler-rt [compiler-rt] Drop support for using the external shell 2026-07-14 20:30:59 -07:00
cross-project-tests [DTLTO] terminology - use extract rather than serialize (#208468) 2026-07-14 13:29:27 +01:00
flang [flang][OpenMP] Lower target in_reduction (#199967) 2026-07-15 09:05:04 +05:30
flang-rt [Flang] Drop option to use external shell for testing 2026-07-14 20:29:05 -07:00
libc [libc] Annex K: Add constraint handler unit test class (#197707) 2026-07-15 10:40:25 +01: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 Make ios_base::xalloc non-atomic with LIBCXX_ENABLE_THREADS=OFF. (#208356) 2026-07-14 13:54:25 -07:00
libcxxabi [libcxx][libcxxabi] Remove OVERRIDABLE_FUNCTION macro (#209323) 2026-07-14 00:15:30 -07:00
libsycl [libsycl] implement methods of synchronization in event and queue classes (#205860) 2026-07-15 12:00:59 +02:00
libunwind [libunwind][test] Add .clang-format (#209364) 2026-07-14 13:29:57 -04:00
lld [lld] Remove ability to use the external shell 2026-07-14 20:25:57 -07:00
lldb [lldb][POSIX] Correctly report error copying from remote platform (#207365) 2026-07-15 11:17:51 +01:00
llvm [Driver][DirectX] Add /Qsource_in_debug_module flag (#204415) 2026-07-15 14:52:28 +05:00
llvm-libgcc [CMake] Warn when the version of CMake is older than 3.31.0 (#204203) 2026-06-29 11:16:27 -07:00
mlir [mlir][linalg] Refine pack/unpack simplification checks (NFC) (#209522) 2026-07-15 07:57:55 +01:00
offload [Offload] Remove unnecessary assert (#209518) 2026-07-14 15:10:16 -05:00
openmp [openmp] Apply a mingw/64 bit codepath to arm64ec too (#209297) 2026-07-14 09:18:39 +03:00
orc-rt [orc-rt] Sort header and source lists in CMakeLists. NFC. (#209685) 2026-07-15 15:51:27 +10:00
polly [Polly] Skip vectorize.enable for FP loops with dist=1 dependences (#205756) 2026-07-15 15:51:38 +05:30
runtimes Revert "Reapply "runtimes: Pass CMAKE_SYSTEM_NAME based on target triple" (#205133) (#205522)" (#208644) 2026-07-10 08:58:58 +00:00
third-party Fix a warning and an uninitialized variable in benchmark (#200927) 2026-06-02 13:49:06 -07:00
utils [libc][bazel] Add recently added sys/socket functions and syscall wrappers (#209457) 2026-07-15 08:52:31 +02:00
.clang-format
.clang-format-ignore [Docs] Update coding standard for TD files (#200848) 2026-06-01 21:35:58 +01:00
.clang-tidy
.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 mailmap entry for myself (#189447) 2026-03-30 18:35:34 +00: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.