LLVM/project 186261c — llvm/include/llvm/Analysis LoopAccessAnalysis.h, llvm/lib/Analysis LoopAccessAnalysis.cpp

[LAA] Conservatively handle compressed pointers

This allows vectorizing loops with `ptr` conditional inductions (that
are used to compute the addresses of loads/stores), and loops where
the pointers may alias (so need bounds checks).

For now, diff checks are not supported if either the source or sink is
a compressed pointer (as the difference may not be constant within the
loop). This could be relaxed for pointers derived from the same phi.

We ensure the over-approximation does not wrap before bounds checking
compressed pointers to ensure the bounds hold for the loop.

All SCEV predicates and bounds checks are frozen as the compressed
access may not occur in the scalar loop (if the condition turns out to
be false for the entire loop), to avoid branching on poison.

Assisted-by: Codex (adding test converage, comments my own).
DeltaFile
+293-0llvm/test/Transforms/LoopVectorize/compress-idioms-runtime-checks.ll
+242-0llvm/test/Transforms/LoopVectorize/compress-idioms.ll
+81-13llvm/lib/Analysis/LoopAccessAnalysis.cpp
+92-0llvm/test/Transforms/LoopVersioning/compressed-pointer-runtime-check-freeze.ll
+0-30llvm/test/Transforms/LoopVectorize/compress-idioms-negative-tests.ll
+27-3llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+735-464 files not shown
+755-5810 files

LLVM/project 64d8f67 — llvm/include/llvm/Analysis IVDescriptors.h, llvm/include/llvm/Transforms/Utils LoopUtils.h

[Analysis] Move collectCompressedPtrs to IVDescriptors.{cpp|h} (NFC)

`collectCompressedPtrs` needs to be accessible in LAA to handle runtime
checks for compressed ptrs.
DeltaFile
+0-85llvm/lib/Transforms/Utils/LoopUtils.cpp
+85-0llvm/lib/Analysis/IVDescriptors.cpp
+19-0llvm/include/llvm/Analysis/IVDescriptors.h
+0-18llvm/include/llvm/Transforms/Utils/LoopUtils.h
+104-1034 files

LLVM/project 79a666c — llvm/docs ProgrammersManual.md

[Docs] Fix getTerminator() documentation (#248010)

https://github.com/llvm/llvm-project/pull/189416 changes getTerminator()
to require a well-formed BasicBlock, but didn't adjust the documentation
in the ProgrammersManual.
DeltaFile
+2-2llvm/docs/ProgrammersManual.md
+2-21 files

LLVM/project fb4d597 — lldb/source/Plugins/SymbolFile/NativePDB SymbolFileNativePDB.cpp, lldb/test/Shell/SymbolFile/NativePDB line-tables-only-decl.test line-tables-only-run.yaml

[lldb][NativePDB] Accept functions without a type (#236547)

When I was trying to trim down the output from llvm with
`-gline-tables-only`, I noticed that lldb doesn't parse functions if
they don't have a type.
It's fine for functions to not have a type in PDB. If you look at the
PDBs from Microsoft's symbol servers, then, if they have functions at
all, they never have types (i.e. type index 0).

With this PR, lldb will accept these functions. They will get a nullptr
`Type*` and an `LLDB_INVALID_UID` for the type UID.
`ResolveTypeUID` couldn't handle that UID before, but now it will return
a nullptr type too.

I added two tests (of the same program). One to check that we can parse
the functions and another one to check that we can generate a backtrace.
I can't use the current clang-cl to compile this, because it would
generate types for functions, so it's using yaml2obj.
DeltaFile
+400-0lldb/test/Shell/SymbolFile/NativePDB/Inputs/line-tables-only-pdb.yaml
+117-0lldb/test/Shell/SymbolFile/NativePDB/line-tables-only-run.yaml
+18-9lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+18-0lldb/test/Shell/SymbolFile/NativePDB/line-tables-only-decl.test
+553-94 files

LLVM/project a167da3 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp

[AMDGPU] Invalidate stale UniformityInfo entries in 64-bit div/rem expansion (#215460)

expandDivRem64 erases instructions outside DeadVals worklist, so a freed
instruction address could be reused and misclassified by UniformityInfo

Found as a result of an audit after finding the same class of bug fixed
for Reassociate in #214719
DeltaFile
+7-2llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+7-21 files

LLVM/project 5370a99 — clang/lib/CIR/CodeGen CIRGenOpenMPClause.h CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c target-reduction.c

[CIR][OpenMP] Add support for OpenMP reduction clause

This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.

Assisted-by: Cursor / Claude Opus 5.5 Medium
DeltaFile
+212-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.cpp
+173-0clang/test/CIR/CodeGenOpenMP/target-reduction.c
+130-42clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+33-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+25-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.h
+573-425 files

OPNSense/core 03d8f9c — src/opnsense/mvc/app/library/OPNsense/Firewall FilterRule.php

Add comment
DeltaFile
+1-0src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php
+1-01 files

LLVM/project e1dac42 — clang/lib/Parse ParsePragma.cpp

[clang] Explicitly discard the vectorize_width token consume result
DeltaFile
+1-1clang/lib/Parse/ParsePragma.cpp
+1-11 files

LLVM/project fcafd9f — clang/lib/Parse ParsePragma.cpp

[clang] Validate vectorize_width state after consuming its identifier
DeltaFile
+11-10clang/lib/Parse/ParsePragma.cpp
+11-101 files

LLVM/project 9b899cc — clang/lib/Parse ParsePragma.cpp

[clang] Use TryConsumeToken for vectorize_width arguments
DeltaFile
+1-3clang/lib/Parse/ParsePragma.cpp
+1-31 files

LLVM/project 8c16249 — clang/docs ReleaseNotes.md, clang/lib/Parse ParsePragma.cpp

[clang] Fix crash on trailing comma in vectorize_width

With `#pragma clang loop vectorize_width(4, )`, the token after the comma
is the end marker for the loop hint. The parser diagnoses the missing
argument, then lexes past the marker. Error recovery consumes the
following loop and crashes at the end of the file.

```text
Stack dump:
1.      <eof> parser at end of file
2.      <stdin>:1:10: parsing function body 'f'
3.      <stdin>:1:10: in compound statement ('{}')
```

Leave the end marker for the existing recovery path so parsing resumes
at the following loop. Clang now emits only the malformed hint error.

```text
<stdin>:2:40: error: vectorize_width loop hint malformed; use vectorize_width(X, fixed) or vectorize_width(X, scalable) where X is an integer, or vectorize_width('fixed' or 'scalable')

    [6 lines not shown]
DeltaFile
+5-0clang/test/Parser/pragma-loop-vectorize.cpp
+3-1clang/lib/Parse/ParsePragma.cpp
+2-0clang/docs/ReleaseNotes.md
+10-13 files

LLVM/project 022436a — llvm/lib/Target/RISCV RISCVInterleavedAccess.cpp, llvm/test/CodeGen/RISCV/rvv fixed-vectors-interleaved-access.ll

[RISCV] Fix VL calculation for lowering interleaved loads/stores (#247382)

AI Usage: Codex assisted test generation.
DeltaFile
+56-6llvm/test/CodeGen/RISCV/rvv/fixed-vectors-interleaved-access.ll
+2-3llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp
+58-92 files

LLVM/project 3315436 — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU dag-topological-sort.ll

[AMDGPU] Handle fp_class conditions in frexp select combine (#248079)

performFrexpSelectCombine removes a select that returns 0 for inf or nan
inputs to frexp_exp, but it only recognized setcc conditions. An isinf or
isfinite setcc is combined into AMDGPUISD::FP_CLASS, and with
-combiner-topological-sorting that happens before the select is visited.

Assisted-by: Claude Fable 5.2 <noreply at anthropic.com>
DeltaFile
+83-0llvm/test/CodeGen/AMDGPU/dag-topological-sort.ll
+14-0llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+97-02 files

LLVM/project de89a67 — llvm/lib/Transforms/IPO MemProfContextDisambiguation.cpp, llvm/test/Assembler thinlto-memprof-summary.ll

[MemProf] Don't clone functions whose block addresses escape (#247257)

CloneFunction only remaps block addresses used inside the function body.
If a function's block addresses escape, e.g. through a computed-goto
jump table stored in a global variable, a MemProf clone continues
loading the original function's block addresses and jumps into
the original function's blocks, leading to crashes.

Skip such functions when building the MemProf callsite context graph so
their allocations retain default behavior.

Assisted-by: Gemini
DeltaFile
+114-0llvm/test/ThinLTO/X86/memprof-escaping-blockaddress.ll
+85-0llvm/test/ThinLTO/X86/memprof-escaping-blockaddress-tailcall.ll
+79-0llvm/test/Transforms/MemProfContextDisambiguation/escaping-blockaddress.ll
+77-0llvm/test/Transforms/MemProfContextDisambiguation/escaping-blockaddress-tailcall.ll
+72-0llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
+12-12llvm/test/Assembler/thinlto-memprof-summary.ll
+439-1218 files not shown
+492-4424 files

LLVM/project cfe44a7 — llvm/docs/CommandGuide llvm-size.md, llvm/test/tools/llvm-size elf-berkeley.test coff-gnu.test

[llvm-size] Add GNU output format (-G / --format=gnu) (#242024)

Implement GNU binutils size -G / --format=gnu (including -t / --totals
and --common support) as GnuSizePrinter on top of SummarySizePrinter,
sharing radix formatting via printRadixNumber and classifying sections
using SectionRef::isText()/isData()/isBSS() (filtering non-SHF_ALLOC
sections for ELF and debug sections for non-ELF formats such as COFF and
Mach-O).

Assisted-by: Gemini
DeltaFile
+116-0llvm/test/tools/llvm-size/macho-gnu.test
+104-5llvm/tools/llvm-size/llvm-size.cpp
+97-0llvm/test/tools/llvm-size/elf-gnu.test
+89-0llvm/test/tools/llvm-size/coff-gnu.test
+35-2llvm/test/tools/llvm-size/elf-berkeley.test
+22-6llvm/docs/CommandGuide/llvm-size.md
+463-137 files not shown
+526-1713 files

FreeBSD/ports 9660c97 — databases/sabiql Makefile Makefile.crates

databases/sabiql: Update to 3.3.0

ChangeLog:

1. https://github.com/riii111/sabiql/releases/tag/v3.1.0
2. https://github.com/riii111/sabiql/releases/tag/v3.2.0
3. https://github.com/riii111/sabiql/releases/tag/v3.3.0

Reported by:    "riii111" <notifications at github.com>
DeltaFile
+37-41databases/sabiql/distinfo
+17-19databases/sabiql/Makefile.crates
+1-1databases/sabiql/Makefile
+55-613 files

OPNSense/core 9c2141c — src/opnsense/mvc/app/library/OPNsense/Firewall FilterRule.php

firewall: add source-track rule to max-src-states to ensure max states are tracked per rule, and not globally across all rules using max-src-states
DeltaFile
+3-0src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php
+3-01 files

LLVM/project 87feed3 — offload/test/offloading target_task_untied_locals.c target_taskloop_privates.c

[offload][OpenMP] Split target_task_privates.c by construct (#247569)

The test added in #245784 fails on the SPIR-V and NVPTX buildbots for
reasons unrelated to that fix: on SPIR-V, clang asserts when emitting
the __kmpc_taskloop call, and on NVPTX, an untied task in a target
region faults at run time. Also, the tests fail on intelgpu for various
reasons.

Move the taskloop and untied task cases into their own tests and mark
all the tests as UNSUPPORTED on the affected targets as a temporary
workaround to unbreak the buildbots.

Claude assisted with this patch.
DeltaFile
+8-36offload/test/offloading/target_task_privates.c
+39-0offload/test/offloading/target_taskloop_privates.c
+29-0offload/test/offloading/target_task_untied_locals.c
+76-363 files

LLVM/project 0e4dbca — clang/lib/Basic/Targets OSTargets.h, clang/test/Preprocessor init-s390x.c

[SystemZ][z/OS] Define __CHARSET_LIB on z/OS to say programs are ascii (#247841)

When the compiler is generating code ascii it needs to define
`__CHARSET_LIB` to 1 so the system headers use the right variation of
functions like printf.
DeltaFile
+1-0clang/test/Preprocessor/init-s390x.c
+1-0clang/lib/Basic/Targets/OSTargets.h
+2-02 files

LLVM/project aa5a4e8 — llvm/lib/CodeGen ComplexDeinterleavingPass.cpp, llvm/test/CodeGen/AArch64 complex-deinterleaving-single-reduction.ll

[ComplexDeinterleaving] Only match complex dot products as single reductions (#242326)

The single-reduction path matched the accumulator and the value added to
it as a complex value, which dropped the accumulation, and it replaced
any final reduction with an add reduction. processReductionSingle is
only correct for a CDot feeding an add reduction, so only accept that.

Fixes #237381.
Fixes #235316.
DeltaFile
+93-0llvm/test/CodeGen/AArch64/complex-deinterleaving-single-reduction.ll
+10-13llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
+103-132 files

LLVM/project 9cadeb7 — lldb/source/Host/posix ProcessLauncherPosixFork.cpp

[lldb] Avoid scanning to the file descriptor limit when launching on FreeBSD (#242022)

Use `close_range()` on FreeBSD to close gaps between preserved
descriptors before exec, avoiding one close syscall per possible
descriptor when procfs is absent. This reduces multi-second launch
delays with large RLIMIT_NOFILE limits to less than 1 second.

Prepare the sorted keep list before fork and preserve the launch-error
pipe and file-action descriptors, including duplication destinations.
Retain the existing cleanup on older FreeBSD SDKs and when close_range
fails at runtime.
DeltaFile
+80-38lldb/source/Host/posix/ProcessLauncherPosixFork.cpp
+80-381 files

LLVM/project ea06f24 — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/AArch64 nontemporal-load.ll fixed-interleave7-intrinsics.ll

[DAG] Combine extract_subvector(scalar_to_vector) -> scalar_to_vector (#247753)

This folds a extract_subvector of a scalar_to_vector to a
scalar_to_vector, providing that the extract is from lane 0.
DeltaFile
+52-55llvm/test/CodeGen/AArch64/fixed-two-lane-vector-interleave.ll
+8-10llvm/test/CodeGen/AArch64/fixed-interleave5-intrinsics.ll
+4-6llvm/test/CodeGen/AArch64/fixed-interleave7-intrinsics.ll
+4-0llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+0-1llvm/test/CodeGen/AArch64/nontemporal-load.ll
+68-725 files

LLVM/project 41bf1a2 — llvm/lib/Target/SystemZ/MCTargetDesc SystemZInstPrinterCommon.cpp

Add FIXME
DeltaFile
+5-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinterCommon.cpp
+5-01 files

OPNSense/core 1df39f6 — src/opnsense/scripts/firmware check.sh

firmware: speed up packages read by removing expr calls
DeltaFile
+20-20src/opnsense/scripts/firmware/check.sh
+20-201 files

LLVM/project bd582ec — llvm/test/tools/llvm-mca/X86/Generic resources-sha512.s

[llvm-mca][x86] Add SHA512 test coverage (#247233)

Added a new LLVM MCA test for SHA-512 instructions in
llvm/test/tools/llvm-mca/X86/Generic

The test covers the register forms of:

- vsha512msg1
- vsha512msg2
- vsha512rnds2

Enabled SHA-512 through -mattr in the RUN line and generated the
expected checks using update_mca_test_checks.py

Fixes #246307
DeltaFile
+40-0llvm/test/tools/llvm-mca/X86/Generic/resources-sha512.s
+40-01 files

LLVM/project 69aa3e7 — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c region-cleanups-O2.c

[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'

Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+924-0clang/test/CIR/CodeGenOpenMP/target-teams-distribute-parallel-for.c
+305-45clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+278-0clang/test/CIR/CodeGenOpenMP/distribute-parallel-for.c
+28-0clang/test/CIR/CodeGenOpenMP/target-host-eval.c
+27-0clang/test/CIR/CodeGenOpenMP/region-cleanups-O2.c
+19-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+1,581-456 files

LLVM/project 421de6a — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c teams-distribute.c

[CIR][OpenMP] Add initial support for distribute

This patch adds initial support for the OpenMP 'distribute' directive. Basic
code generation for the standalone and combined cases is introduced. Support
for clauses will be added in the future. The composite 'teams distribute
parallel for' form will be added in a subsequent patch.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+756-0clang/test/CIR/CodeGenOpenMP/target-teams-distribute.c
+203-0clang/test/CIR/CodeGenOpenMP/teams-distribute.c
+153-28clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+27-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+1,139-284 files

LLVM/project d2b6546 — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP region-cleanups-O2.c teams.c

[CIR][OpenMP] Add support for omp teams

This patch adds support for the OpenMP 'teams' directive, both standalone
and as the combined `target teams` construct. isCombinableLeaf now also
recognizes teams, so an explicitly-nested `target` + `teams` pair gets
the same omp.combined marking as the combined case.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+201-0clang/test/CIR/CodeGenOpenMP/target-teams.c
+112-0clang/test/CIR/CodeGenOpenMP/teams.c
+94-5clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+35-0mlir/test/Dialect/OpenMP/stack-to-shared.mlir
+22-8mlir/lib/Dialect/OpenMP/Transforms/StackToShared.cpp
+24-0clang/test/CIR/CodeGenOpenMP/region-cleanups-O2.c
+488-131 files not shown
+501-167 files

LLVM/project 5687ffc — clang/lib/CIR/CodeGen CIRGenOpenMPClause.h CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP parallel.c not-yet-implemented.c

[CIR][OpenMP] Add support for OpenMP reduction clause

This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.

Assisted-by: Cursor / Claude Opus 5.5 Medium
DeltaFile
+212-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.cpp
+135-42clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+173-0clang/test/CIR/CodeGenOpenMP/target-reduction.c
+33-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+25-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.h
+19-0clang/test/CIR/CodeGenOpenMP/parallel.c
+597-426 files

LLVM/project e8a8d18 — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c region-cleanups-O2.c

[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'

Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+924-0clang/test/CIR/CodeGenOpenMP/target-teams-distribute-parallel-for.c
+305-45clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+278-0clang/test/CIR/CodeGenOpenMP/distribute-parallel-for.c
+28-0clang/test/CIR/CodeGenOpenMP/target-host-eval.c
+27-0clang/test/CIR/CodeGenOpenMP/region-cleanups-O2.c
+19-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+1,581-456 files