LLVM/project d0b5bc8 — lld/test/COFF pdb-section-contribs-determinism.test

Add determinism test
DeltaFile
+28-0lld/test/COFF/pdb-section-contribs-determinism.test
+28-01 files

LLVM/project d16798e — lld/COFF PDB.cpp

Use prefix-sum to parallelize across all output sections at once.
DeltaFile
+20-9lld/COFF/PDB.cpp
+20-91 files

LLVM/project b172272 — llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Support KnownFPClass.cpp

 [KnownFPClass] add applyInputSemantics to handle NSZ and the input denormal mode (#242439)

Adds `KnownFPClass::applyInputSemantics` to correctly handle NSZ and the
input denormal mode. It will apply the input denormal mode via
`KnownFPClass::applyInputDenormalMode` first, then it will treat any
+0.0 or -0.0 (and subnormals flushed to zero) as a zero of either sign.
DeltaFile
+14-0llvm/lib/Support/KnownFPClass.cpp
+8-0llvm/include/llvm/Support/KnownFPClass.h
+22-02 files

LLVM/project 13395ff — llvm/lib/Support KnownFPClass.cpp, llvm/test/CodeGen/AArch64/GlobalISel knownfpclass-ops.mir

[KnownFPClass] Improve fadd/fsub deductions around infinity classes (#239064)

Part of https://github.com/llvm/llvm-project/issues/242935

Improved `fadd`/`fsub` deductions for ruling out infinity. For example,
`1.0 - FLT_MAX` is not negative infinity. Additionally, we don't need to
worry if one of the inputs is infinity when ruling out finite classes,
because adding or subtracting infinity will only result in infinity or
NaN.

Also adds test coverage for `fadd`/`fsub` NaN deductions.

AI Disclosure:
I used Claude Opus 5 to help write the tests and to help analyze the
correctness of the changes.
DeltaFile
+548-14llvm/test/Transforms/Attributor/nofpclass-fadd-fsub.ll
+44-44llvm/test/Transforms/Attributor/nofpclass-constrained-fadd-fsub.ll
+27-7llvm/lib/Support/KnownFPClass.cpp
+2-2llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-exp.ll
+2-2llvm/test/CodeGen/AArch64/GlobalISel/knownfpclass-ops.mir
+1-1llvm/test/Transforms/Attributor/nofpclass-powi.ll
+624-706 files

NetBSD/pkgsrc R4Q7wtg — games/ezquake Makefile

   ezquake: set MAINTAINER on their request
VersionDeltaFile
1.2+2-2games/ezquake/Makefile
+2-21 files

LLVM/project 18b43ce — llvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/test/Transforms/InstCombine simplify-libcalls-new.ll

SimplifyLibCalls: preserve allocation attributes in optimizeNew

When `LibCallSimplifier::optimizeNew` rewrites an `operator new` call into a
`__hot_cold_t` allocation call, forward the allocation attributes
(`allockind`, `allocsize`, `"alloc-family"`, and parameter `allocalign`) from
the original call onto the synthesized call instruction alongside its metadata.

This is a new patch since 2023 (unlike most of the rest of the stack)
and allows the next patch to remove more specialized C++ knowledge
from the LLVM layer, instead leaving it in clang where it seems more
sensible.

This patch was authored with the assistance of an LLM and was reviewed
by me before posting.
DeltaFile
+10-1llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+1-1llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+11-22 files

LLVM/project 1a43577 — clang/lib/CodeGen CGExprCXX.cpp, clang/test/CodeGenCXX new_hot_cold.cpp

CGExprCXX: emit family and allockind attributes

This allows us to remove the special knowledge about C++ allocation from
LLVM's MemoryBuiltins.cpp, instead trusting attributes to communicate
the important properties.

Annoyingly, clang has to grow a little bit of hard-coded knowledge about
mangled symbol names in order to actually get the most-basic-matching
::operator::new when working out the alloc-family attribute. I spent
some time trying to do this "right" by looking up the available
operators new and finding the best one, but that's super tricky and this
has the virtue of working and being pretty obviously correct when
compared to the old code.

Happily, clang now emits allocator family attributes for custom
allocators like the `__hot_cold_t` overloads in `new_hot_cold.cpp`
(which `isReplaceableGlobalAllocationFunction` in clang recognizes),
allowing us to remove that special knowledge from LLVM.


    [7 lines not shown]
DeltaFile
+2-120llvm/lib/Analysis/MemoryBuiltins.cpp
+51-51llvm/test/Transforms/InstCombine/new-delete-itanium.ll
+51-3clang/lib/CodeGen/CGExprCXX.cpp
+10-22clang/test/Headers/openmp_new_nothrow.cpp
+14-14llvm/test/Transforms/InstCombine/new-delete-itanium-32.ll
+16-10clang/test/CodeGenCXX/new_hot_cold.cpp
+144-22017 files not shown
+177-25023 files

LLVM/project 3cdd0bb — clang/lib/CodeGen CGCall.cpp, clang/test/CodeGen alloc-align-attr.c catch-alignment-assumption-attribute-alloc_align-on-function.cpp

clang: emit allocalign to LLVM for alloc_align attributes

LLVM is growing knowledge of this, so we should inform it when we have
the information available. As a bonus, since we now check return
alignments in the callee as of an earlier patch of mine, we can now drop
the redundant llvm.assume() that this previously emitted.

This patch is originally from 2023 and was rebased and revised with
assistance from an LLM. I have manually reviewed the diffs to the
limit of my abilities (I don't do much in LLVM, and this is my first
time touching clang in a meaningful way) and they appear sensible. The
commit messages are entirely written by me.

Differential Revision: https://reviews.llvm.org/D119271
DeltaFile
+14-85clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
+7-36clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function.cpp
+24-2clang/lib/CodeGen/CGCall.cpp
+6-16clang/test/CodeGen/alloc-align-attr.c
+8-8clang/test/CodeGenCXX/new_hot_cold.cpp
+6-6clang/test/CodeGenCXX/cxx1z-aligned-allocation.cpp
+65-1539 files not shown
+80-18115 files

LLVM/project ee8e026 — clang/lib/CodeGen CodeGenFunction.cpp, clang/test/CodeGen catch-alignment-assumption-attribute-assume_aligned-on-function.cpp catch-alignment-assumption-attribute-assume_aligned-on-function-two-params.cpp

clang: also check alloc_align and assume_aligned claims in return (#239729)

Prior to this patch, we only check alloc_align and assume_aligned claims
in the caller. We are about to thread alloc_align information down into
LLVM, which would then have a chance to defeat the sanitizer checks by
performing optimizations. To avoid that, we also check alignment claims
in the called function prior to return.

Per review feedback on D121629:
- Also verify the alignment required by `AssumeAlignedAttr` in
`EmitReturnValueCheck`.
- Add a new `ReturnAlignmentAssumption` (`return_alignment_assumption`)
sanitizer handler in clang and compiler-rt that accepts the dynamic
return statement `SourceLocation` pointer loaded from `ReturnLocation`.
- Only emit the sanitizer check (and not a redundant `llvm.assume`) in
`EmitReturnValueCheck`.

This patch is originally from 2023 and was rebased and revised with
assistance from an LLM. I have manually reviewed the diffs to the limit

    [4 lines not shown]
DeltaFile
+90-15clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function.cpp
+90-15clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
+82-13clang/test/CodeGen/catch-alignment-assumption-attribute-assume_aligned-on-function-two-params.cpp
+79-13clang/test/CodeGen/catch-alignment-assumption-attribute-assume_aligned-on-function.cpp
+51-18clang/lib/CodeGen/CodeGenFunction.cpp
+46-10compiler-rt/lib/ubsan/ubsan_handlers.cpp
+438-8411 files not shown
+504-8817 files

LLVM/project 32da94e — clang/lib/CIR/CodeGen CIRGenExpr.cpp, clang/lib/CodeGen CGExprCXX.cpp

[CIR][CodeGen] Assert static member calls are unexpected in EmitCXXMemberCallExpr (#237420)

### Description

In Clang AST, calls to static member functions (whether written as
`S::func()`, `s.func()`, or `p->func()`) are lowered by Sema into
ordinary `CallExpr` nodes rather than `CXXMemberCallExpr`.

Previously:
- CIR's `CIRGenFunction::emitCXXMemberCallExpr` had an `errorNYI` for
static methods, giving the incorrect impression that static member
function calls were unimplemented (leading to #237402).
- Classic Clang's `CodeGenFunction::EmitCXXMemberCallExpr`
(`CGExprCXX.cpp:200`) retained an `if (MD->isStatic())` defensive
branch.

Per [ClangIR's code duplication
guidelines](https://github.com/llvm/llvm-project/blob/main/clang/docs/CIR/CodeDuplication.md),
this patch replaces the `errorNYI` in CIR and the defensive check in

    [4 lines not shown]
DeltaFile
+4-7clang/lib/CodeGen/CGExprCXX.cpp
+4-4clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+8-112 files

LLVM/project ce9f099 — llvm/lib/Analysis ScalarEvolution.cpp

[SCEV] Use m_scev_MinMax in applyDivisibilityOnMinMaxExpr (NFC). (#243233)

The lambda checking for a min/max expression with a constant first
operand and one other operand is what m_scev_MinMax with m_SCEVConstant
matches. Use the matcher and take the kind from the expression. The
assertion that the constant is non-negative directly followed the check
for it, remove it. Also pass Divisor by const reference.

Part of an effort to clean up the loop guards logic.

PR: https://github.com/llvm/llvm-project/pull/243233
DeltaFile
+13-34llvm/lib/Analysis/ScalarEvolution.cpp
+13-341 files

LLVM/project d960615 — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution ranges.ll

[SCEV] Union PHI operand ranges in the preferred range type. (#242710)

Pass RangeType to unionWith for incoming values for PHIs, like for other
constant range operations in the function. This improves results in
a few cases:
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/2044/changes

PR: https://github.com/llvm/llvm-project/pull/242710
DeltaFile
+35-0llvm/test/Analysis/ScalarEvolution/ranges.ll
+1-1llvm/lib/Analysis/ScalarEvolution.cpp
+36-12 files

LLVM/project ebceefe — libc/src/__support/File CMakeLists.txt file.h, libc/test/src/__support/File file_test.cpp

[libc] Fix FILE mutex, buffering (#238618)

This change fixes some small issues found in FILE while building
programs against LLVM-libc. Specifically:

1) Linux pipes sometimes give less data than was requested, but the FILE
   is expected to retry until it gets a blank read.
2) FILE mutexes are expected to be reentrant.

This PR fixes these minor issues and adds appropriate tests to catch
this behavior in future.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+125-0libc/test/src/__support/File/file_test.cpp
+36-36libc/src/__support/File/file.cpp
+3-1libc/src/__support/File/file.h
+1-0utils/bazel/llvm-project-overlay/libc/src/__support/File/BUILD.bazel
+1-0libc/src/__support/File/CMakeLists.txt
+166-375 files

LLVM/project d44bb80 — llvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine add-sext-icmp.ll

[InstCombine] Allow multi-use icmp in (add (..) (sext (icmp ne A, 0))) fold. (#243186)

The fold to umax(A, 1) is profitable even if the icmp has other users:
it replaces the two adds and the sext with a single umax and the icmp
stays alive for its other users.

This shows up after LoopVectorize, where the trip count
(A + 1 - umin(A, 1)) shares umin(A, 1) with the runtime check bounds.

Triggers in ClamAV and also SPEC2017:
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/2051

PR: https://github.com/llvm/llvm-project/pull/243186
DeltaFile
+40-3llvm/test/Transforms/InstCombine/add-sext-icmp.ll
+2-2llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+42-52 files

LLVM/project 7993afa — compiler-rt/lib/sanitizer_common sanitizer_offload.cpp

fix pred
DeltaFile
+6-4compiler-rt/lib/sanitizer_common/sanitizer_offload.cpp
+6-41 files

NetBSD/pkgsrc fE6Nlev — doc CHANGES-2026

   Added math/gecode version 6.6.0.
VersionDeltaFile
1.8125+2-1doc/CHANGES-2026
+2-11 files

LLVM/project f03f0a2 — llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination minmax.ll

[ConstraintElim] Split signed min/max across their operands when checking a compare

The existing constraint systems only record the bounds that hold for both
operands of a min/max (smax(a, b) >= a and >= b, smin(a, b) <= a and <= b). The
other direction is a disjunction, which cannot be recorded as a fact. When a
compare of signed decompositions involves a min/max result, split it into its
operands: the decomposition is monotonic in that result, so it is the max or min
of its values on each side, and the relation holds for all or for either side
respectively.

https://alive2.llvm.org/ce/z/zsGkJ-
DeltaFile
+369-2llvm/test/Transforms/ConstraintElimination/minmax.ll
+171-0llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+540-22 files

LLVM/project 556678f — libc/src/__support/FPUtil dyadic_float.h double_double.h, libc/test/src/__support/FPUtil CMakeLists.txt multiply_add_test.cpp

[libc][math] Add multiply_sub, add_multiply, and sub_multiply to multiply_add.h.

- Add fputil::multiply_sub (x * y - z), fputil::add_multiply (x + y * z), and
  fputil::sub_multiply (x - y * z) alongside fputil::multiply_add (x * y + z).
- Use template-based hardware FMA dispatch and size-aware inline overloads so
  explicit multiply_add<T> calls also use hardware FMA when available.
- Add NumberPair<T> add/sub overloads in double_double.h, and matching
  multiply_sub, add_multiply, and sub_multiply overloads for DoubleDouble and
  DyadicFloat.
- Add unit tests in libc/test/src/__support/FPUtil/multiply_add_test.cpp.
DeltaFile
+175-40libc/src/__support/FPUtil/multiply_add.h
+174-0libc/test/src/__support/FPUtil/multiply_add_test.cpp
+58-0libc/src/__support/FPUtil/double_double.h
+21-0libc/src/__support/FPUtil/dyadic_float.h
+13-0libc/test/src/__support/FPUtil/CMakeLists.txt
+12-0utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel
+453-402 files not shown
+459-408 files

NetBSD/pkgsrc MTUSwMs — math Makefile

   Add gecode.
VersionDeltaFile
1.655+2-1math/Makefile
+2-11 files

NetBSD/pkgsrc BiYF4qo — math/gecode DESCR distinfo

   Import math/gecode from wip, update to version 6.6.0.

   Gecode is an open source C++ toolkit for developing constraint-based
   systems and applications. Gecode provides a constraint solver with
   state-of-the-art performance while being modular and extensible.
VersionDeltaFile
1.1+887-0math/gecode/PLIST
1.1+22-0math/gecode/Makefile
1.1+14-0math/gecode/buildlink3.mk
1.1+5-0math/gecode/distinfo
1.1+3-0math/gecode/DESCR
+931-05 files

LLVM/project 2fb7efa — llvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU fdiv.bf16.ll llvm.log2.bf16.ll

[AMDGPU] Mitigate TRANS f16 to partial VGPR write WAW hazard

Fixes: ROCM-33929
DeltaFile
+226-0llvm/test/CodeGen/AMDGPU/hazard-partial-trans-f16-write.mir
+170-0llvm/test/CodeGen/AMDGPU/hazard-partial-trans-f16-write-fake16.mir
+101-0llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+29-16llvm/test/CodeGen/AMDGPU/llvm.exp2.bf16.ll
+24-13llvm/test/CodeGen/AMDGPU/llvm.log2.bf16.ll
+10-7llvm/test/CodeGen/AMDGPU/fdiv.bf16.ll
+560-365 files not shown
+577-4011 files

NetBSD/src m3L0Nvz — sys/arch/hb68k/pg68k pmap_pgmmu.c, sys/arch/m68k/m68k pmap_68k.c pmap_motorola.c

   Change pmap_update() from a "delete call sites with a do nothing macro"
   to a do-nothing function.
VersionDeltaFile
1.115+15-2sys/arch/m68k/m68k/pmap_motorola.c
1.136+12-2sys/arch/sun3/sun3x/pmap.c
1.9+8-3sys/arch/sun68k/sun68k/pmap_sunmmu.c
1.68+8-3sys/arch/sun2/sun2/pmap.c
1.98+7-3sys/arch/m68k/m68k/pmap_68k.c
1.6+7-3sys/arch/hb68k/pg68k/pmap_pgmmu.c
+57-165 files not shown
+62-5111 files

LLVM/project 33c3fb0 — clang/docs ReleaseNotes.md SanitizerSpecialCaseList.md, clang/test/Driver fsanitize-ignorelist.c

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+49-0llvm/unittests/Support/SpecialCaseListTest.cpp
+23-14clang/docs/SanitizerSpecialCaseList.md
+16-5llvm/lib/Support/SpecialCaseList.cpp
+3-2llvm/include/llvm/Support/SpecialCaseList.h
+5-0clang/test/Driver/fsanitize-ignorelist.c
+5-0clang/docs/ReleaseNotes.md
+101-216 files

LLVM/project 9381079 — llvm/lib/Target/NVPTX NVPTXReplaceImageHandles.cpp, llvm/test/CodeGen/NVPTX tex-handle-in-reg-sm20.ll tex-handle-in-reg-nvcl.ll

[NVPTX] Don't crash on image handles that are not params or globals (#238504)

NVPTXReplaceImageHandles hits llvm_unreachable when a texture, sampler
or surface handle is defined by anything other than a param load,
texsurf_handles or a copy, e.g. a handle returned by a call, merged by a
phi or computed with arithmetic. Release builds go on to crash in the
AsmPrinter.

Such handles have no symbol to replace them with, so leave them in a
register, as is already done for CUDA param loads. This needs bindless
textures and surfaces, and PTX only allows texture and sampler handles
in registers in unified texture mode, so report an error on sm_2x and
for texture and sampler handles in independent texture mode instead of
emitting invalid PTX.

---------

Co-authored-by: mmalavika <mmalavika at nvidia.com>
DeltaFile
+96-0llvm/test/CodeGen/NVPTX/tex-handle-in-reg.ll
+32-7llvm/lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp
+33-0llvm/test/CodeGen/NVPTX/tex-handle-in-reg-nvcl.ll
+26-0llvm/test/CodeGen/NVPTX/tex-handle-in-reg-sm20.ll
+187-74 files

LLVM/project cecb42f — llvm/test/tools/llvm-diff compare-aliasing-metadata.ll, llvm/tools/llvm-diff/lib DiffConsumer.h DifferenceEngine.cpp

Revert "[llvm-diff] Compare TBAA and alias scope metadata" (#243239)

Reverts llvm/llvm-project#238976

Looks like the new test broke because of a mid-air collision with
080bb047270d99b468db8ca9603ff1b320124eff.
DeltaFile
+0-200llvm/test/tools/llvm-diff/compare-aliasing-metadata.ll
+1-120llvm/tools/llvm-diff/lib/DiffConsumer.cpp
+1-7llvm/tools/llvm-diff/lib/DifferenceEngine.cpp
+0-3llvm/tools/llvm-diff/lib/DiffConsumer.h
+2-3304 files

LLVM/project 1b877f0 — utils/bazel/llvm-project-overlay/libc libc_build_rules.bzl, utils/bazel/llvm-project-overlay/libc/include BUILD.bazel

[bazel][libc] Allow generated headers to be filtered by entrypoint (#243168)

For https://github.com/llvm/llvm-project/issues/242727. This PR splits
the `libc_generated_header` rule into two steps. Instead of directly
generating a header, we introduce two new rules: `libc_hdrgen_spec` and
`libc_generated_headers`. The former describes all the inputs to a
`hdrgen` invocation for a header without producing a file, and the
latter generates the header from the spec while letting you specify
`--entrypoints=`.

This is nice because it allows rules to share definitions for how
headers are produced while specifying their own sets of `entrypoints`.

---

**Note:** this is not exactly equivalent to how the CMake build works.
In this PR, LLVM-libc function objects are still compiled against
[unfiltered
headers](https://github.com/llvm/llvm-project/blob/cbfac21cd384f6c7c480c2d0026ecedfe2d619e7/utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl#L46),

    [23 lines not shown]
DeltaFile
+140-28utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
+46-1utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel
+23-7utils/bazel/llvm-project-overlay/libc/include/BUILD.bazel
+209-363 files

FreeBSD/ports a74d9a0 — science/apbs Makefile pkg-plist

science/apbs: fix plist
DeltaFile
+7-0science/apbs/pkg-plist
+1-0science/apbs/Makefile
+8-02 files

FreeBSD/ports f2de5ea — science/amrex Makefile pkg-plist

science/amrex: fix plist
DeltaFile
+20-3science/amrex/pkg-plist
+1-0science/amrex/Makefile
+21-32 files

FreeBSD/ports 7148d5c — math/universal Makefile distinfo

math/universal: update 5.10.0 → 5.17.0
DeltaFile
+44-8math/universal/pkg-plist
+3-3math/universal/distinfo
+2-2math/universal/Makefile
+49-133 files

FreeBSD/ports de80df8 — math/clad Makefile pkg-plist

math/clad: fix plist
DeltaFile
+5-0math/clad/pkg-plist
+1-0math/clad/Makefile
+6-02 files