LLVM/project 7bf820cllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 ordered-reduction-root-deleted.ll

[SLP] Fix crash in ordered reduction with loop-carried chain root

tryToReduceOrdered built the buildTree ignore list only from the current
window's reduced values, omitting the chain root when its leaf is a
trailing scalar outside the window.
buildTree then vectorized the root through the phi cycle,
vectorizeTree unlinked it, and emitReduction inserted at the dangling
insertion point.
Build the ignore list from the full ReductionOps chain, matching the
associative-reduction path, so the root stays scalar to fix a crash.

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/201963
DeltaFile
+70-0llvm/test/Transforms/SLPVectorizer/X86/ordered-reduction-root-deleted.ll
+6-3llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+76-32 files

LLVM/project 985e499libclc/test update_libclc_tests.py

[libclc][Test] Don't hard code `clang` path in update_libclc_tests.py (#201806)

In #201773, build folder is `redhat-linux-build` rather than `build`.
Detect clang from PATH. Also add --clang-binary option to specify clang path.
DeltaFile
+27-5libclc/test/update_libclc_tests.py
+27-51 files

LLVM/project e8753fdlibclc/test/conversion convert.cl, libclc/test/geometric cross.cl

[libclc][Test] Add -fno-discard-value-names to RUN line (#201808)

Entry block label could be missing. Add -fno-discard-value-names to make
sure it exists.

Resolves #201773
DeltaFile
+1-1libclc/test/conversion/convert.cl
+1-1libclc/test/geometric/cross.cl
+1-1libclc/test/integer/add_sat.cl
+1-1libclc/test/integer/sub_sat.cl
+1-1libclc/test/math/cos.cl
+1-1libclc/test/math/fabs.cl
+6-63 files not shown
+9-99 files

LLVM/project 517a075libclc CMakeLists.txt

[libclc] Fix LIBCLC_OUTPUT_LIBRARY_DIR when find_package(LLVM) fails (#201816)

If we configure llvm from llvm-project/build folder, find_package(LLVM)
succeeds, `LLVM_LIBRARY_OUTPUT_INTDIR` is `build/./lib` and
`LLVM_BINARY_DIR` is `build`.

However, in #201773, find_package(LLVM) fails due to
LLVM_LIBDIR_SUFFIX=64, LLVM_LIBRARY_OUTPUT_INTDIR is
`redhat-linux-build/runtimes/runtimes-nvptx64-nvidia-cuda-bins/lib64`
and LLVM_BINARY_DIR is `redhat-linux-build`.

Use LLVM_BINARY_DIR, which is stable for both cases, for libclc output dir.

Fixes #201773
DeltaFile
+3-3libclc/CMakeLists.txt
+3-31 files

FreeBSD/ports 36800ffdevel/py-geojson distinfo Makefile

devel/py-geojson: Update to 3.3.0
DeltaFile
+3-3devel/py-geojson/distinfo
+1-2devel/py-geojson/Makefile
+4-52 files

LLVM/project 961d5b8libc/src/__support/time/linux clock_gettime.cpp

[libc] Fix clock_gettime on arm32 (#201959)

After removing 32 bit time_t the buildbot has been failing due to a
segfault. This PR fixes it. Not the cleanest fix but I don't want the
buildbot failing over the weekend.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+22-5libc/src/__support/time/linux/clock_gettime.cpp
+22-51 files

FreeBSD/ports b4c8e2bdatabases/p5-DBIx-Lite distinfo Makefile

databases/p5-DBIx-Lite: Update to 0.38
DeltaFile
+3-3databases/p5-DBIx-Lite/distinfo
+2-1databases/p5-DBIx-Lite/Makefile
+5-42 files

LLVM/project b7152ffutils/bazel/llvm-project-overlay/clang BUILD.bazel

[Bazel] Fixes 8aafa50 (#201958)

This fixes 8aafa50c7a2dfb8ca1d5cdf8980f7f2d259779f5.

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+1-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+1-01 files

FreeBSD/ports 59389adarchivers/py-xopen distinfo Makefile, archivers/py-xopen/files patch-pyproject.toml

archivers/py-xopen: Update to 2.1.0
DeltaFile
+18-0archivers/py-xopen/files/patch-pyproject.toml
+3-3archivers/py-xopen/distinfo
+1-1archivers/py-xopen/Makefile
+22-43 files

LLVM/project f90e1f7llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR inline-asm.mir

AMDGPU/UniformityAnalysis: Test MIR uniformity analysis for INLINEASM

Resolves to always uniform at the moment.
DeltaFile
+60-0llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/inline-asm.mir
+60-01 files

LLVM/project 8aafa50clang/test/OffloadTools/clang-sycl-linker link.ll basic.ll, clang/tools/clang-nvlink-wrapper ClangNVLinkWrapper.cpp

[clang][sycl][nvlink] Share static library linking in Frontend/Offloading (#201253)

Move clang-nvlink-wrapper's archive member selection engine into a new
shared library in llvm/lib/Frontend/Offloading (ArchiveLinker.h/.cpp)
and use it from both clang-nvlink-wrapper and clang-sycl-linker, adding
static library (.a) and -l support to the SYCL linker.

The shared llvm::offloading::resolveArchiveMembers() API:
- Searches -L paths for -l library names (lib<name>.a or :<name>)
- Expands archives, honouring --whole-archive/--no-whole-archive
- Runs a symbol-driven fixed-point loop to extract only the archive
  members that resolve undefined symbols
- Returns the resolved MemoryBuffers and symbol table; the symbol table
  is consumed by clang-nvlink-wrapper's LTO resolution pass

clang-sycl-linker gains -l, --whole-archive/--no-whole-archive, and -u
options (added to SYCLLinkOpts.td). The previous --bc-library option
has been removed in favor of the standard -l mechanism.


    [11 lines not shown]
DeltaFile
+301-0llvm/lib/Frontend/Offloading/ArchiveLinker.cpp
+35-246clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp
+67-110clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+114-6clang/test/OffloadTools/clang-sycl-linker/link.ll
+116-0llvm/include/llvm/Frontend/Offloading/ArchiveLinker.h
+72-32clang/test/OffloadTools/clang-sycl-linker/basic.ll
+705-3946 files not shown
+804-40612 files

LLVM/project 1dae5decompiler-rt/test/sanitizer_common/TestCases/Linux signal_line.cpp

[compiler-rt] Add missing cstdlib include to signal_line.cpp test (#201955)

Fixes test after libc++ PR #195509 which drops transitive includes.
DeltaFile
+1-0compiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
+1-01 files

FreeBSD/src e27261dsys/x86/x86 ucode.c

amd64: there is no reason to copy ucode around in ucode_load_bsp()

Approved by:    re (cperciva)
PR:     294630

(cherry picked from commit 16f21c5af35002b8361ffb2e83ff3c92cd899a3a)
(cherry picked from commit c6ccef4a32b4e09927dfdcc0f734af25c6193f5a)
DeltaFile
+9-11sys/x86/x86/ucode.c
+9-111 files

LLVM/project 488875cllvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 bt-merge-fuse.ll

[X86] Fix crash on BT bit index narrower than log2(BW) (#201793)

peekThroughBitPosExtTrunc asserted that peeling
TRUNCATE/ZERO_EXTEND/ANY_EXTEND never drops below log2(BW) bits, but a
BT bit index can be e.g. a zext of i1. Stop peeking there instead: below
log2(BW) bits a peeled value no longer determines the bit index on its
own, so comparing peeled values would also be unsound.

Fixes #201444.
DeltaFile
+28-0llvm/test/CodeGen/X86/bt-merge-fuse.ll
+8-7llvm/lib/Target/X86/X86ISelLowering.cpp
+36-72 files

LLVM/project de7a520clang/test/CodeGen/LoongArch/lasx builtin-alias.c builtin.c, lldb/source/Utility RISCV_DWARF_Registers.h

Merge branch 'users/rnk/llvm-md-1a' into users/rnk/llvm-md-1b

# Conflicts:
#       llvm/docs/GettingInvolved.md
#       llvm/docs/ProgrammersManual.md
#       llvm/docs/index.md
DeltaFile
+3,563-3,543llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+6,598-111llvm/test/CodeGen/X86/clmul-vector.ll
+2,749-2,749clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,745-2,745clang/test/CodeGen/LoongArch/lasx/builtin.c
+3,092-2,392llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll
+4,489-13lldb/source/Utility/RISCV_DWARF_Registers.h
+23,236-11,5532,403 files not shown
+137,246-79,0572,409 files

LLVM/project b9a0094clang/test/CodeGen/LoongArch/lasx builtin-alias.c builtin.c, lldb/source/Utility RISCV_DWARF_Registers.h

Merge branch 'main' into users/rnk/llvm-md-1a
DeltaFile
+3,563-3,543llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+6,598-111llvm/test/CodeGen/X86/clmul-vector.ll
+2,749-2,749clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,745-2,745clang/test/CodeGen/LoongArch/lasx/builtin.c
+3,092-2,392llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll
+4,489-13lldb/source/Utility/RISCV_DWARF_Registers.h
+23,236-11,5532,403 files not shown
+137,247-79,0572,409 files

LLVM/project cab8d8cllvm/docs Coroutines.md CommandLine.md

[docs] Migrate 20 LLVM docs to markdown (#201465)

An LLM assisted in the rewrite. I didn't use pandoc or any other tools,
and I think there are fewer artifacts. I validated these docs by opening
all 20 HTML files in my browser.

Files:
- DebuggingLLVM.md
- FAQ.md
- CompilerWriterInfo.md
- GettingStartedVS.md
- NewPassManager.md
- MemorySSA.md
- LoopTerminology.md
- Lexicon.md
- MIRLangRef.md
- CoverageMappingFormat.md
- InstrProfileFormat.md
- BitCodeFormat.md

    [9 lines not shown]
DeltaFile
+1,025-1,160llvm/docs/Coroutines.md
+890-932llvm/docs/CommandLine.md
+505-585llvm/docs/BitCodeFormat.md
+440-520llvm/docs/MIRLangRef.md
+452-489llvm/docs/Extensions.md
+422-452llvm/docs/LibFuzzer.md
+3,734-4,13814 files not shown
+6,467-7,16120 files

LLVM/project 638f3aellvm/docs Coroutines.md Coroutines.rst

[docs] Rename 20 key LLVM docs to Markdown (#201464)

This may break the docs build temporarily, but there will be a follow-up
PR that fixes it immediately after. The rename is being committed first
to aid review and source code archaelogy.

Tracking issue: #201242
DeltaFile
+2,304-0llvm/docs/Coroutines.md
+0-2,304llvm/docs/Coroutines.rst
+0-1,753llvm/docs/CommandLine.rst
+1,753-0llvm/docs/CommandLine.md
+1,362-0llvm/docs/BitCodeFormat.md
+0-1,362llvm/docs/BitCodeFormat.rst
+5,419-5,41951 files not shown
+15,568-15,56857 files

LLVM/project ba7b74fllvm/lib/Target/X86/GISel X86LegalizerInfo.cpp, llvm/test/CodeGen/X86/GlobalISel legalize-undef-vec-scaling.mir

[X86][GlobalISel] Adding missing Query to G_BUILD_VECTOR legalization (#199435)

Once G_BUILD_VECTOR was fixed, legalize-undef-vec-scaling.mir falled
into endless legalization loop as incoming MIR doesn't match correct
lowering of the type.
DeltaFile
+20-27llvm/test/CodeGen/X86/GlobalISel/legalize-undef-vec-scaling.mir
+2-1llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
+22-282 files

LLVM/project 46bc562clang/test/CodeGen/LoongArch/lasx builtin-alias.c builtin.c, lldb/source/Plugins/Process/Utility lldb-riscv-register-enums.h RegisterInfos_riscv32.h

Merge branch 'users/rnk/llvm-md-2a' into users/rnk/llvm-md-2b
DeltaFile
+3,563-3,543llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+2,749-2,749clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,745-2,745clang/test/CodeGen/LoongArch/lasx/builtin.c
+4,489-13lldb/source/Utility/RISCV_DWARF_Registers.h
+4,473-0lldb/source/Plugins/Process/Utility/lldb-riscv-register-enums.h
+4,253-32lldb/source/Plugins/Process/Utility/RegisterInfos_riscv32.h
+22,272-9,0821,474 files not shown
+77,494-39,5321,480 files

LLVM/project fe560c5clang/test/CodeGen/LoongArch/lasx builtin-alias.c builtin.c, lldb/source/Plugins/Process/Utility lldb-riscv-register-enums.h RegisterInfos_riscv32.h

Merge branch 'main' into users/rnk/llvm-md-2a
DeltaFile
+3,563-3,543llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+2,749-2,749clang/test/CodeGen/LoongArch/lasx/builtin-alias.c
+2,745-2,745clang/test/CodeGen/LoongArch/lasx/builtin.c
+4,489-13lldb/source/Utility/RISCV_DWARF_Registers.h
+4,473-0lldb/source/Plugins/Process/Utility/lldb-riscv-register-enums.h
+4,253-32lldb/source/Plugins/Process/Utility/RegisterInfos_riscv32.h
+22,272-9,0821,474 files not shown
+77,494-39,5321,480 files

NetBSD/pkgsrc-wip 31b1b13. TODO

TODO: + shotcut-26.6, tor-browser-15.0.15.
DeltaFile
+2-2TODO
+2-21 files

NetBSD/pkgsrc XUlAMgRsecurity/polkit distinfo, security/polkit/patches patch-src_polkitbackend_polkitbackendinteractiveauthority.c

   polkit: remove unnecessary define

   (upstream feedback)

   NFCI
VersionDeltaFile
1.6+3-4security/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority.c
1.22+2-2security/polkit/distinfo
+5-62 files

NetBSD/pkgsrc fMl9Hu5doc TODO CHANGES-2026

   doc: Updated net/arti to 2.4.0
VersionDeltaFile
1.27343+4-3doc/TODO
1.3511+2-1doc/CHANGES-2026
+6-42 files

NetBSD/pkgsrc EvfuDFRnet/arti distinfo cargo-depends.mk

   arti: update to 2.4.0.

   # Arti 2.4.0 — 1 June 2026

   Arti 2.4.0 continues our work on relay and directory authority development,
   and brings us even closer to a working middle relay.

   This release also includes a number of important
   bug fixes in our onion service client implementation,
   and a number of breaking changes in the `arti-client` APIs.
VersionDeltaFile
1.18+352-316net/arti/distinfo
1.18+116-104net/arti/cargo-depends.mk
1.23+2-2net/arti/Makefile
+470-4223 files

LLVM/project 34555beclang/lib/ScalableStaticAnalysisFramework/Analyses SSAFAnalysesCommon.h, clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow PointerFlowExtractor.cpp

[SSAF][Extractor] Make hard errors in Extractors quiet

Hard errors were used in extractors during development to quickly
identify unsupported language constructs. This commit converts them to
DEBUG_WITH_TYPE so that these errors are silenced in release builds.

rdar://178747892
DeltaFile
+31-0clang/unittests/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowTest.cpp
+25-0clang/unittests/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageTest.cpp
+10-11clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageExtractor.cpp
+10-9clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowExtractor.cpp
+9-0clang/lib/ScalableStaticAnalysisFramework/Analyses/SSAFAnalysesCommon.h
+85-205 files

LLVM/project 4f73c81clang/include/clang/Basic FileManager.h, clang/include/clang/Lex HeaderSearch.h

[clang][lex] Store `HeaderFileInfo` in a `MapVector` (#201936)

This is a re-commit of PR #200968 (f357a47) that was reverted by PR
#201702 (adaa9e0). One call-site of
`HeaderSearch::forEachExistingLocalFileInfo()` in `ASTWriter` relies on
stable order, which the `DenseMap` didn't provide. This PR switches to
`MapVector`, which has the same performance characteristics as the
original solution at the cost of a theoretical memory usage increase.

Original PR description:

Calling `FileManager::GetUniqueIDMapping()` during modular builds gets
very expensive if the `FileManager` has seen lots of files. This
function is used in two places in the `ASTWriter` to look up
`HeaderFileInfo` in `HeaderSearch`.

This PR changes the storage of `HeaderFileInfo` from
`FileEntry::getUID()`-indexed `std::vector<T>` to
`llvm::DenseMap<FileEntryRef, T>`, improving scanning performance by
~2.5%.
DeltaFile
+37-60clang/lib/Serialization/ASTWriter.cpp
+11-22clang/lib/Lex/HeaderSearch.cpp
+0-18clang/lib/Basic/FileManager.cpp
+17-0llvm/include/llvm/ADT/MapVector.h
+7-8clang/include/clang/Lex/HeaderSearch.h
+0-5clang/include/clang/Basic/FileManager.h
+72-1136 files

LLVM/project 80ad296llvm/lib/IR Verifier.cpp, llvm/lib/Transforms/Utils InlineFunction.cpp

Reland "Remove the optional bitcast between a musttail call and its ret" (#201280) (#201642)

This relands #201280, which was reverted in #201479 because it broke the
sanitizer buildbot

The revert was caused by a heap-use-after-free in
`BitcodeReader::materialize`

Fix: The CallBase branch could have erased I before we read it in the
new conditional
DeltaFile
+9-34llvm/lib/IR/Verifier.cpp
+32-0llvm/test/Bitcode/musttail-bitcast-upgrade.ll
+0-24llvm/test/Transforms/CallSiteSplitting/musttail.ll
+2-21llvm/lib/Transforms/Utils/InlineFunction.cpp
+0-19llvm/test/Transforms/SafeStack/X86/musttail.ll
+0-14llvm/test/Instrumentation/AddressSanitizer/musttail.ll
+43-1125 files not shown
+55-13411 files

OPNSense/plugins 461e171security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel ServicesController.php, security/stunnel/src/opnsense/mvc/app/models/OPNsense/Stunnel Stunnel.xml

security/stunnel: unrelated sanity while here
DeltaFile
+5-12security/stunnel/src/opnsense/mvc/app/models/OPNsense/Stunnel/Stunnel.xml
+1-1security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/ServicesController.php
+6-132 files

OPNSense/plugins c88f61dsecurity/stunnel/src/opnsense/scripts/stunnel generate_certs.php

security/stunnel: remove plugins.inc since config.inc includes it
DeltaFile
+19-20security/stunnel/src/opnsense/scripts/stunnel/generate_certs.php
+19-201 files