LLVM/project 58ad823 — llvm/lib/InterfaceStub ELFObjHandler.cpp, llvm/test/tools/llvm-ifs version-ok.ifs conflict-unique.test

[llvm-ifs] Handle STB_GNU_UNIQUE ELF symbols (#241122)

Add an optional "Unique: true" symbol attribute to the IFS text format
for STB_GNU_UNIQUE ELF bindings and bump IFSVersionCurrent (and Clang's
-emit-interface-stubs output) from 3.0 to 3.1 while preserving backward
compatibility with existing 3.0 IFS files.

When generating ELF stubs, emit STB_GNU_UNIQUE for unique symbols and
set EI_OSABI to ELFOSABI_GNU whenever any symbol uses "Unique: true"
(keeping ELFOSABI_NONE otherwise) so static linkers handle resolution
directly.

Also reject symbols specifying both Weak and Unique, handle Unique and
major-version mismatches symmetrically when merging IFS files, diagnose
unsupported exported ELF bindings, and update unit and lit tests.

Assisted by Gemini.
DeltaFile
+359-0llvm/test/tools/llvm-ifs/binary-read-gnu-unique.test
+218-0llvm/unittests/InterfaceStub/ELFYAMLTest.cpp
+62-0llvm/test/tools/llvm-ifs/conflict-unique.test
+47-14llvm/lib/InterfaceStub/ELFObjHandler.cpp
+12-2llvm/tools/llvm-ifs/llvm-ifs.cpp
+11-2llvm/test/tools/llvm-ifs/version-ok.ifs
+709-1844 files not shown
+788-6750 files

FreeBSD/src 512f019 — sys/dev/vmm vmm_dev.c

vmm: Fix double free with devmem_create_cdev error

devmem_create_cdev() does not allocate name storage and should not free
it in the error path.  It is already freed by the caller on error.

Reviewed by:    markj
Fixes:          cef5f43f819c
MFC after:      1 day
MFC to:         stable/15
Differential Revision:  https://reviews.freebsd.org/D61529
DeltaFile
+0-1sys/dev/vmm/vmm_dev.c
+0-11 files

LLVM/project 6d2fe54 — llvm/lib/Target/X86 X86FlagsCopyLowering.cpp

Constify the iterator in the for loop

Co-authored-by: Nick Desaulniers <ndesaulniers at google.com>
DeltaFile
+1-1llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+1-11 files

LLVM/project bb0f9c2 — llvm/lib/Target/RISCV RISCVInstrInfoVPseudos.td, llvm/test/CodeGen/RISCV/rvv pr165232.ll remat.ll

[RISCV] Rematerialize vmset.m and vmclr.m (#248627)

PseudoVMSET_M_* and PseudoVMCLR_M_* only take an AVL and SEW operand and
have no passthru, so they can be rematerialized like vmv.v.i and vid.v.
The pseudo's SEW/LMUL ratio is fixed by its opcode, so recomputing it
with the same AVL produces the same VL, and mask results are tail
agnostic.

Assisted-by: Claude
DeltaFile
+99-0llvm/test/CodeGen/RISCV/rvv/remat.ll
+17-36llvm/test/CodeGen/RISCV/rvv/pr165232.ll
+1-0llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+117-363 files

LLVM/project afa7081 — llvm/lib/Transforms/Scalar LoopIdiomRecognize.cpp, llvm/test/Transforms/LoopIdiom strlen-funclet.ll

[LoopIdiom] Give a strlen formed in a funclet its funclet bundle (#246787)

When a strlen or wcslen loop is in a Windows EH funclet, the call that
replaced it had no "funclet" operand bundle. WinEHPrepare then treats
the call as implausible and makes the rest of the funclet unreachable,
so a catch handler with such a loop traps as soon as the string isn't
empty. Add the bundle of the preheader's funclet, as the inliner does,
and leave the loop alone if the preheader isn't in exactly one funclet.

Assisted-by: Claude Opus 5.5 (Anthropic)
DeltaFile
+73-0llvm/test/Transforms/LoopIdiom/strlen-funclet.ll
+16-0llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+89-02 files

LLVM/project a9bbd0f — llvm/docs LangRef.md

[LangRef] Specify vp.strided.{load,store} is byte aligned

https://github.com/llvm/llvm-project/pull/241715 clarified in llubi that the individual lane accesses of a strided load/store are byte aligned, and that the align attribute is only applied to the base pointer. This matches how e.g. the attributor propagates the align attribute.

Update the LangRef to reflect this, and whilst we're here convert the example to opaque pointers.
DeltaFile
+14-12llvm/docs/LangRef.md
+14-121 files

LLVM/project 408a649 — clang/include/clang/Serialization ASTWriter.h, clang/lib/Serialization ASTWriterDecl.cpp ASTWriter.cpp

[C++20] [Modules] Touch members for dtor (#248767)

Close https://github.com/llvm/llvm-project/issues/246162

The root cause of the problem is, some member of
the base of the dtor is omitted in reduced BMI.

The corresponding fix is to touch them for dtor in reduced BMI.

Assisted by AI.
DeltaFile
+136-0clang/test/Modules/pr246162.cppm
+34-0clang/lib/Serialization/ASTWriter.cpp
+2-0clang/lib/Serialization/ASTWriterDecl.cpp
+2-0clang/include/clang/Serialization/ASTWriter.h
+174-04 files

FreeBSD/src 2328c35 — . ChangeLog, src/common tuklib_cgroup.c

Vendor import of xz 5.8.5 (trimmed)
DeltaFile
+1,310-0ChangeLog
+230-75src/liblzma/simple/x86.c
+193-0src/common/tuklib_cgroup.c
+77-45src/liblzma/common/stream_encoder_mt.c
+62-18src/liblzma/lz/lz_encoder_hash.h
+42-7src/liblzma/lzma/lzma2_encoder.c
+1,914-14533 files not shown
+2,238-23839 files

LLVM/project bc29edc — lldb/include/lldb/Host/common TCPSocket.h, lldb/source/Host/common TCPSocket.cpp

[lldb] Move PlatformWasm::FindFreeTCPPort to TCPSocket::FindFreePort (NFC) (#248693)

Move the free-port lookup out of the wasm platform so other platforms
can use it.

Broken out from PR #243197 after feedback

Assisted-by: Claude Code using Opus 5.5

Co-authored-by: Michael Georgariou III <georgariou at apple.com>
DeltaFile
+12-0lldb/unittests/Host/SocketTest.cpp
+1-9lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp
+7-0lldb/source/Host/common/TCPSocket.cpp
+4-2lldb/source/Plugins/Platform/WebAssembly/PlatformWebInspectorWasm.cpp
+4-0lldb/include/lldb/Host/common/TCPSocket.h
+0-3lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.h
+28-146 files

OpenBSD/ports oGuNggW — math/gunits Makefile, net/bro Makefile

   remove port-specific DBL_DECIMAL_DIG defines

   DBL_DECIMAL_DIG was added to float.h
   ok kn@
VersionDeltaFile
1.6+0-3textproc/libfyaml/Makefile
1.21+0-3math/gunits/Makefile
1.170+0-2net/bro/Makefile
+0-83 files

OpenBSD/src QjDBq5X — share/man/man4/man4.hppa artist.4

   SUMMITFB -> ARTIST
VersionDeltaFile
1.2+3-3share/man/man4/man4.hppa/artist.4
+3-31 files

LLVM/project 3153576 — flang/lib/Optimizer/HLFIR/Transforms SimplifyHLFIRIntrinsics.cpp, flang/test/Driver array-runtime.f90

[Flang] Use simple summation by default at all optimization levels

Add a scope option to SimplifyHLFIRIntrinsics and adjust the pipeline to
enable SUM expansion at -O0 while keeping other intrinsic expansions
conditional on array expression optimization. This makes simple
summation the default for SUM expansion across optimization levels.

Previously, floating-point SUM used the runtime's Kahan summation at
-O0, whereas -O1 and higher generally generated loops with simple
sequential addition. This expansion substituted a different algorithm
rather than inlining the runtime implementation, causing numerical
results to depend on the optimization level.

Add -fcompensated-sum to preserve the runtime's compensated algorithm
for REAL and COMPLEX SUM. When enabled, exclude SUM from HLFIR intrinsic
simplification and prevent SimplifyIntrinsics from replacing real SUM
runtime calls with uncompensated reduction loops.

Fixes #176282

    [3 lines not shown]
DeltaFile
+54-37flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
+68-0flang/test/HLFIR/simplify-hlfir-intrinsics-compensated-sum.fir
+59-0flang/test/Integration/compensated-sum.f90
+31-16flang/test/Integration/OpenMP/parallel-private-reduction-worstcase.f90
+39-0flang/test/Transforms/simplifyintrinsics-compensated-sum.fir
+23-9flang/test/Driver/array-runtime.f90
+274-6213 files not shown
+342-6719 files

OpenBSD/src FNshni9 — distrib/sets/lists/man mi

   sync
VersionDeltaFile
1.1781+1-0distrib/sets/lists/man/mi
+1-01 files

LLVM/project 7ed46c5 — llvm/lib/Transforms/IPO Attributor.cpp

Attributor: Fix inverted liveness lookup in checkForAllInstructions

attributor is 0.1-2.0% and attributor-cgscc 0.1-1.0% faster on CTMark
sources (callgrind).

Assisted-by: Claude
DeltaFile
+7-5llvm/lib/Transforms/IPO/Attributor.cpp
+7-51 files

LLVM/project b5b2890 — llvm/include/llvm/ADT FoldingSet.h, llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp

DAG: Don't zero a mostly empty CSE map on every clear

CSEMap never shrinks, so after one large block, clearing it zeroes a
large table even for small DAGs. Mesa hits this since it compiles many
functions with one pass manager.

Add a FoldingSetBase::clear() overload that takes the set's nodes and
zeroes only their probe chains. Use it when CSEMap is less than an
eighth full.

Compile time of radeonsi shader-db shaders: -1.0% (-0.9% cycles).
CTMark instructions:u: +0.01% (-O3), +0.003% (-O0 -g).

Assisted-by: Claude
DeltaFile
+51-0llvm/unittests/ADT/FoldingSet.cpp
+25-0llvm/include/llvm/ADT/FoldingSet.h
+7-1llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+83-13 files

LLVM/project fdcef9b — utils/bazel/llvm-project-overlay/libc/test/src/stdio BUILD.bazel, utils/bazel/llvm-project-overlay/libc/test/src/stdlib BUILD.bazel

[Bazel] Fixes b421d8d (#248763)

This fixes b421d8d3c00f1f4ce0baaa03cf21a5e3b2dd159f (#248696).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=b421d8d3c00f1f4ce0baaa03cf21a5e3b2dd159f

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+2-0utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
+2-0utils/bazel/llvm-project-overlay/libc/test/src/stdio/BUILD.bazel
+4-02 files

LLVM/project d636877 — lldb/source/Symbol Symtab.cpp

[lldb][NFC] Don't copy the name index map in Symtab::FindFunctionSymbols (#248745)

GetNameToSymbolIndexMap() returns a reference, but `auto map = ...`
copied the whole UniqueCStringMap for each base name, method name or
selector lookup, which can be millions of entries for a large binary, to
read a few matches.

assisted-by: claude
DeltaFile
+1-1lldb/source/Symbol/Symtab.cpp
+1-11 files

LLVM/project c715b85 — llvm/lib/CodeGen RegisterCoalescer.cpp

Check isPHIDef before removing pruned subrange value
DeltaFile
+6-5llvm/lib/CodeGen/RegisterCoalescer.cpp
+6-51 files

LLVM/project ef9ede0 — llvm/lib/Target/Mips MipsTargetMachine.h MipsTargetMachine.cpp

Mips: Include the stack alignment override in the subtarget key (#248753)

The subtarget depends on the override-stack-alignment module flag, so
modules with different values need different subtargets.

Assisted-by: Claude
DeltaFile
+9-4llvm/lib/Target/Mips/MipsTargetMachine.cpp
+3-1llvm/lib/Target/Mips/MipsTargetMachine.h
+12-52 files

LLVM/project b0bfa06 — llvm/lib/Transforms/Utils EntryExitInstrumenter.cpp, llvm/test/Transforms/EntryExitInstrumenter mcount-with-frompc.ll

EntryExitInstrumenter: Don't pass the return address to __cyg_profile_func_enter_bare (#248706)

__cyg_profile_func_enter_bare does not take any arguments. It was
passed the return address on AArch64, LoongArch and RISC-V because it
shared the mcount path, which started passing it for _mcount in
eafbab6facb0.

Assisted-by: Claude
DeltaFile
+9-0llvm/test/Transforms/EntryExitInstrumenter/mcount-with-frompc.ll
+3-2llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp
+12-22 files

LLVM/project 6cabcfd — llvm/lib/Target/RISCV RISCVTargetMachine.h RISCVTargetMachine.cpp

RISCV: Include the target ABI in the subtarget key (#248750)
DeltaFile
+5-4llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
+2-1llvm/lib/Target/RISCV/RISCVTargetMachine.h
+7-52 files

LLVM/project 41e148b — compiler-rt/lib/ctx_profile RootAutoDetector.cpp

[ctxprof] Hold the samples lock while the root auto-detector reads them

The root auto-detector means to lock each thread's samples while it reads them, but the lock guard was an unnamed temporary, so the lock was released at the end of the same statement and the samples were read unlocked. Name the guard so the lock is held while the samples are read.
DeltaFile
+1-1compiler-rt/lib/ctx_profile/RootAutoDetector.cpp
+1-11 files

LLVM/project 9a872eb — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp

[ctxprof] Assert CurrentRootDepth does not overflow
DeltaFile
+6-2compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+6-21 files

LLVM/project de190cd — compiler-rt/lib/ctx_profile CtxInstrProfiling.h CtxInstrProfiling.cpp, compiler-rt/lib/ctx_profile/tests CtxInstrProfilingTest.cpp

[ctxprof] Avoid blocking on flat profile allocation

Flat profile allocation previously blocked on the function and flat arena mutexes, which can stall or deadlock flat-profile allocation if a user-space fiber holds a lock while a sibling spins, or if a signal handler interrupts a thread holding one of those mutexes. Switch those acquisitions in getFlatProfile to TryLock and fall back to the scratch context when contended, and log the missed activation count on profile fetch when nonzero.
DeltaFile
+153-0compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
+69-40compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+3-0compiler-rt/lib/ctx_profile/CtxInstrProfiling.h
+225-403 files

LLVM/project 40298f6 — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp, compiler-rt/lib/ctx_profile/tests CtxInstrProfilingTest.cpp

[ctxprof] Preserve live current root across nested and recursive entries

A failed TryLock in tryStartContextGivenRoot previously cleared __llvm_ctx_profile_current_context_root even when the thread already held an outer root, preventing the outer root from unlocking Taken on exit. Keep a live __llvm_ctx_profile_current_context_root intact across nested or recursive root entries and track the entry depth of the held root so Taken is unlocked only on its outermost exit.
DeltaFile
+160-0compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
+17-1compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+177-12 files

LLVM/project acc956c — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp

[ctxprof] Assert UnderContextDepth does not overflow
DeltaFile
+4-4compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+4-41 files

LLVM/project f156238 — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp, compiler-rt/lib/ctx_profile/tests CtxInstrProfilingTest.cpp

[ctxprof] Track under-context depth across nested and contended roots

Entering a root marks the thread as under a root regardless of whether the thread acquires the root's collection lock, but exiting cleared that state only when the thread held the lock. Track a per-thread root entry depth instead, so flat profiling resumes once a contended root exits and stays suppressed across nested or recursive root activations until the outermost root exits.

A function the root auto-detector promotes while one of its activations is already running exits that activation without a matching entry. The depth does not go below zero, but if that activation runs under another root, flat profiling resumes on that thread before the outer root exits. This affects only activations in flight at promotion time; explicitly stated roots are not affected.
DeltaFile
+206-0compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
+21-6compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+227-62 files

LLVM/project b421d8d — libc/src/__support/printf_core float_hex_converter.h float_dec_converter.h, libc/src/stdlib str_from_util.h

[libc] Use FPBits::is_inf() for printf and strfromx inf/nan checks (#248696)

On x86 80-bit `long double` (`X86_Binary80`), `FPBits::get_mantissa()`
excludes the explicit integer bit. Pseudo-infinities (`biased_exp ==
0x7FFF`, `int_bit == 0`, zero fraction) and zero-fraction unnormals
(`biased_exp != 0`, `int_bit == 0`, zero fraction) both satisfy
`is_inf_or_nan()` and `get_mantissa() == 0`, so `printf` and `strfroml`
formatted them as `inf` instead of `nan`.

Switch the inf/nan checks in `float_dec_converter.h`,
`float_dec_converter_limited.h`, `float_hex_converter.h`, and
`str_from_util.h` to `FPBits::is_inf()`, which requires `biased_exp ==
0x7FFF` and `int_bit == 1` with a zero fraction on `X86_Binary80` and
matches the prior check on implicit-bit formats. Rename
`mantissa_is_zero` to `is_inf` in `InfNanFPBitsProperties` and
`FloatHexExpFPBitsProperties`, and add `sprintf` and `strfroml` tests
for canonical infinities, pseudo-infinities, and zero-fraction
unnormals.

Assisted-By: Gemini
DeltaFile
+73-1libc/test/src/stdlib/strfroml_test.cpp
+38-35libc/src/__support/printf_core/float_dec_converter_limited.h
+65-1libc/test/src/stdio/sprintf_test.cpp
+20-16libc/src/stdlib/str_from_util.h
+15-10libc/src/__support/printf_core/float_dec_converter.h
+9-5libc/src/__support/printf_core/float_hex_converter.h
+220-683 files not shown
+232-719 files

LLVM/project 4cc23e6 — llvm/lib/Transforms/IPO Attributor.cpp

[Attributor] Restore the load/store and alloca walks

The callers should not have to know which AAs the seeding relies on.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+9-16llvm/lib/Transforms/IPO/Attributor.cpp
+9-161 files

LLVM/project c150b08 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 vector-shuffle-concatenation.ll any_extend_vector_inreg_of_broadcast_from_memory.ll

[X86] Move subvector broadcast load reuse to combineBROADCAST_LOAD (#245000)

Move the ordinary-load fold from `combineLoad` to
`combineBROADCAST_LOAD`, extending its existing base-pointer use-list
search. This avoids walking a Chain use list for every eligible load
when there is no subvector broadcast. Reordering the per-user checks
alone would still traverse that list.

Replace matching loads with extracts from the broadcast and revisit it
to handle remaining loads. The pointer, input-chain, memory-size and
simple-load checks are retained.

Fixes #244549
DeltaFile
+244-244llvm/test/CodeGen/X86/vector-interleaved-store-i8-stride-7.ll
+237-0llvm/test/CodeGen/X86/avx512-extract-subvector-load-store.ll
+30-32llvm/test/CodeGen/X86/zero_extend_vector_inreg_of_broadcast_from_memory.ll
+27-27llvm/lib/Target/X86/X86ISelLowering.cpp
+10-12llvm/test/CodeGen/X86/any_extend_vector_inreg_of_broadcast_from_memory.ll
+3-4llvm/test/CodeGen/X86/vector-shuffle-concatenation.ll
+551-3196 files