LLVM/project 88fbc06llvm/lib/Transforms/Scalar DeadStoreElimination.cpp, llvm/test/Transforms/DeadStoreElimination merge-stores.ll

[DSE] Restrict partial-overlap store merging to matching orderings. (#199728)

Partial-overlap store merging folds the later killing store into the
earlier dead store and erases the killing store. That is invalid if the
killing store is volatile or has stronger-than-unordered atomic
ordering, because erasing it drops an observable write. It is also invalid
if the killing and dead stores have different atomic orderings, because
the bytes originally written by the killing store would inherit the dead
store's atomicity after the merge -- silently dropping (or adding)
atomicity for those bytes.

Require both stores to be unordered (i.e. non-volatile with ordering at
most unordered) and to share the same ordering. This preserves the
existing fold for two simple stores or two unordered-atomic stores
(e.g. simple.ll's test43a) while leaving volatile, ordered-atomic, and
atomicity-mismatched cases in place.

This bug was found by a large run of Opus 4.7 looking for bugs in LLVM.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply at anthropic.com>
DeltaFile
+51-36llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+52-8llvm/test/Transforms/DeadStoreElimination/merge-stores.ll
+103-442 files

LLVM/project 5df91f6.github/workflows sycl-tests.yml

workflows/sycl-tests: Pin container image reference (#199466)

I pinned the image to the version that was used in the last successful
workflow run.

https://github.com/llvm/llvm-project/security/code-scanning/1808
https://docs.zizmor.sh/audits/#unpinned-images
DeltaFile
+1-1.github/workflows/sycl-tests.yml
+1-11 files

FreeNAS/freenas a592405src/middlewared/middlewared/plugins/certificate create_handlers.py utils.py

NAS-141169 / 27.0.0-BETA.1 / Clean up `plugins.certificate.utils.get_private_key` (#19008)

Remove `plugins.certificate.utils.get_private_key`. Dead code that was
passing private key twice. Preserves behavior.
DeltaFile
+4-15src/middlewared/middlewared/plugins/certificate/create_handlers.py
+1-11src/middlewared/middlewared/plugins/certificate/utils.py
+5-262 files

LLVM/project 9d751a2llvm/lib/Object OffloadBundle.cpp, llvm/test/tools/llvm-objdump/Offloading fatbin-coff.test fatbin-coff-compress.test

[llvm][Object] Add COFF support to extractOffloadBundleFatBinary (#199574)

Use PointerToRawData from the COFF section header to compute the section
offset, replacing the previous stub that returned an error for all COFF
object files.

This enables llvm-objdump --offloading and llvm-readobj --offloading to
work on COFF fatbins produced by HIP on Windows.

---------

Co-authored-by: James Henderson <James.Henderson at sony.com>
Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
DeltaFile
+38-0llvm/test/tools/llvm-objdump/Offloading/fatbin-coff.test
+28-0llvm/test/tools/llvm-objdump/Offloading/fatbin-coff-compress.test
+21-0llvm/test/tools/llvm-readobj/COFF/AMDGPU/offloading.test
+8-3llvm/lib/Object/OffloadBundle.cpp
+95-34 files

LLVM/project 010faf1llvm/lib/TableGen TGParser.cpp

[TableGen] Add missing grammar comment for !cond(NFC) (#199663)
DeltaFile
+3-0llvm/lib/TableGen/TGParser.cpp
+3-01 files

LLVM/project fafc2b3llvm/lib/TableGen TGParser.cpp

[TableGen] Fix wrong op name in a grammar comment(NFC) (#199661)
DeltaFile
+1-1llvm/lib/TableGen/TGParser.cpp
+1-11 files

LLVM/project 80207c2flang/test/Lower/OpenMP metadirective-device-arch.f90

Fix device arch negative check coverage
DeltaFile
+4-2flang/test/Lower/OpenMP/metadirective-device-arch.f90
+4-21 files

LLVM/project 429bbe6flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP metadirective-implementation.f90 metadirective-device-isa.f90

Support begin/end metadirective
DeltaFile
+89-0flang/test/Lower/OpenMP/metadirective-implementation.f90
+55-0flang/test/Lower/OpenMP/metadirective-device-isa.f90
+41-0flang/test/Lower/OpenMP/metadirective-device-kind.f90
+36-0flang/test/Lower/OpenMP/metadirective-user.f90
+35-0flang/test/Lower/OpenMP/metadirective-construct.f90
+14-7flang/lib/Lower/OpenMP/OpenMP.cpp
+270-76 files

LLVM/project f6633d5flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Semantics/OpenMP metadirective-common.f90

Require a selector when lowering WHEN

This patch ensure we don't have missing selector as unconditional in
lowering since `WHEN` requires a context-selector.

Added negative test to replace the positive test testing against missing
selector.
DeltaFile
+8-18flang/lib/Lower/OpenMP/OpenMP.cpp
+5-0flang/test/Semantics/OpenMP/metadirective-common.f90
+13-182 files

LLVM/project 94069edflang/lib/Lower/OpenMP OpenMP.cpp

Fix for construct
DeltaFile
+41-15flang/lib/Lower/OpenMP/OpenMP.cpp
+41-151 files

LLVM/project 9e4dbb2flang/lib/Lower/OpenMP Utils.cpp, flang/test/Lower/OpenMP metadirective-user.f90

Preserve metadirective user condition scores

The user-condition path returned before getTraitScore was called, so a
score on condition(...) was silently ignored during variant selection.

Extract the score before dispatching user-condition handling, pass it to
the condition traits, and add a test where a scored true condition wins
over an unscored candidate.
DeltaFile
+9-8flang/lib/Lower/OpenMP/Utils.cpp
+15-0flang/test/Lower/OpenMP/metadirective-user.f90
+24-82 files

LLVM/project e123d30flang/lib/Lower/OpenMP Utils.cpp, flang/test/Lower/OpenMP metadirective-device-arch.f90 metadirective-device-isa.f90

Fix trait-property mapping and improve metadirective tests

- In processTraitProperties, restrict the device_isa___ANY fallback to
  only isa selectors. Unknown properties under arch, kind, or vendor
  now produce an invalid trait so the variant does not match. Previously,
  device={arch("neon")} would incorrectly match via ISA target-feature
  checking.
- Add metadirective-nothing tests for OpenMP version >= 5.1.
- Add explicit -triple flags to ISA tests so AArch64 features run
  under an aarch64 triple and x86 features under an x86_64 triple.
- Split device={arch()} tests into metadirective-device-arch.f90
- Add omp.terminator checks for begin/end metadirective match cases.
- Remove begin-metadirective.f90 TODO test (now supported).

Assisted with copilot
DeltaFile
+103-0flang/test/Lower/OpenMP/metadirective-device-arch.f90
+21-70flang/test/Lower/OpenMP/metadirective-device-isa.f90
+62-0flang/test/Lower/OpenMP/metadirective-nothing.f90
+12-22flang/test/Lower/OpenMP/metadirective-implementation.f90
+16-8flang/lib/Lower/OpenMP/Utils.cpp
+0-12flang/test/Lower/OpenMP/Todo/begin-metadirective.f90
+214-1124 files not shown
+236-12710 files

LLVM/project 7425592flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP metadirective-construct.f90

Use selected variants in metadirective construct context

Construct traits gathered only from PFT parents miss constructs introduced
by an enclosing selected begin-metadirective variant. This can cause an
inner construct selector to reject a matching variant.

Use already-emitted enclosing OpenMP operations as the effective context,
falling back to PFT parents when no such operation exists. Add a test for
an inner selector matching target plus an outer-selected parallel.
DeltaFile
+19-12flang/lib/Lower/OpenMP/OpenMP.cpp
+19-0flang/test/Lower/OpenMP/metadirective-construct.f90
+38-122 files

LLVM/project 5823414flang/lib/Lower/OpenMP OpenMP.cpp

Remove redundant MetadirectiveVariant
DeltaFile
+9-12flang/lib/Lower/OpenMP/OpenMP.cpp
+9-121 files

LLVM/project be13726flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP metadirective-implementation.f90

Fix metadirective implicit-nothing candidate ordering

Preserve whether a metadirective variant was explicitly
specified so selection can distinguish explicit nothing
from an omitted directive variant. Order explicit candidates
before implicit nothing candidates when invoking the OpenMP
context scorer, matching the metadirective tie-break rule.

Add standalone and begin/end metadirective regression tests
where an implicit nothing candidate appears before an
otherwise-tied explicit directive variant.

Reference:
OpenMP 5.0 [2.3.4] says that if multiple when clauses have
compatible context selectors with the same highest score, and
at least one of them specifies a directive variant, "the first
directive variant specified in the lexical order of those when
clauses" replaces the metadirective.
DeltaFile
+48-16flang/lib/Lower/OpenMP/OpenMP.cpp
+23-0flang/test/Lower/OpenMP/metadirective-implementation.f90
+71-162 files

LLVM/project 95948e1flang/lib/Lower/OpenMP Utils.cpp OpenMP.cpp, flang/test/Lower/OpenMP metadirective-device-isa.f90 metadirective-implementation.f90

[flang][OpenMP] Support lowering of metadirective (part 1)

This patch implements following feature in metadirective:
- implementation={vendor(...)}
- device={kind(...), isa(...), arch(...)}
- user={condition(<constant-expr>)}
- construct={parallel, target, teams}
- default, nothing, and otherwise clause

Dynamic user conditions, target_device, and loop-associated
variants are deferred to follow-up patches.

This patch is part of the feature work for #188820.

Assisted with copilot and GPT-5.4
DeltaFile
+213-0flang/test/Lower/OpenMP/metadirective-device-isa.f90
+210-0flang/lib/Lower/OpenMP/Utils.cpp
+186-1flang/lib/Lower/OpenMP/OpenMP.cpp
+121-0flang/test/Lower/OpenMP/metadirective-implementation.f90
+33-0flang/test/Lower/OpenMP/metadirective-user.f90
+30-0flang/test/Lower/OpenMP/metadirective-construct.f90
+793-17 files not shown
+860-1913 files

LLVM/project 3aa913flibc/test/src/math/smoke NextTowardTest.h NextAfterTest.h

[libc][math] Temporarily disable exception tests for NextAfter and NextToward tests on Windows. (#199740)

They are a bit flaky on Windows.
See https://github.com/llvm/llvm-project/issues/199738
DeltaFile
+13-0libc/test/src/math/smoke/NextTowardTest.h
+13-0libc/test/src/math/smoke/NextAfterTest.h
+26-02 files

LLVM/project 282e907.github/workflows libc-fullbuild-tests.yml

[libc][ci] Improve full build precommit CIs caching keys. (#199742)

Currently full build precommit CIs only uses c_compiler as the cache's
key which will be the same for many of them listed in the matrix list.
We change to use the combination of (target + build_type + c_compiler)
as keys to uniquely distinguish them and the future gcc builds.
DeltaFile
+1-1.github/workflows/libc-fullbuild-tests.yml
+1-11 files

LLVM/project 92cfd0aclang-tools-extra/clang-doc Representation.cpp JSONGenerator.cpp, clang-tools-extra/clang-doc/tool ClangDocMain.cpp

[clang-doc] Add option for compact JSON (#190822)

By default all JSON is serialized "pretty" with whitespace. This patch
adds an option to serialize JSON without whitespace. This trims the size
of the JSON folder for clang from around 1.3 GB to 785 MB, which is a
39.6% decrease.
DeltaFile
+31-0clang-tools-extra/test/clang-doc/compact.cpp
+7-9clang-tools-extra/clang-doc/Representation.cpp
+8-2clang-tools-extra/clang-doc/JSONGenerator.cpp
+3-4clang-tools-extra/test/clang-doc/json/nested-namespace.cpp
+5-1clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+2-2clang-tools-extra/test/clang-doc/json/inheritance.cpp
+56-1816 files not shown
+73-3422 files

LLVM/project 8d2f190clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaOpenACCClause.cpp

[clang][SemaOpenACC] Reject VLA reduction (#199178)

`GenerateReductionInitRecipeExpr` only handled `ConstantArrayType` when
walking the operand type to build an InitListExpr. A VariableArrayType
`(int arr[i+1])` fell through to the final else branch and tripped
`assert(Ty->isScalarType())`.

Rather than silently accepting VLAs (which have no reasonable lowering.
unlike pointers, there is an expectation of initialized values,but we
cannot statically enumerate elements), reject them outright in
`CheckVarType` with a new diagnostic err_acc_reduction_vla. This is
consistent with the fact that neither codegen nor lowering currently
supports VLA reductions, and other compilers (GCC crashes, NVC++
silently ignores) do not meaningfully handle them either. The fix
upgrades the existing warning path for non-constant arrays in
`CheckVarType` to an error when the clause kind is Reduction, so VLAs
never reach `GenerateReductionInitRecipeExpr`.
Reproducer:


    [18 lines not shown]
DeltaFile
+41-0clang/test/SemaOpenACC/compute-construct-reduction-vla.cpp
+26-0clang/test/SemaOpenACC/compute-construct-reduction-vla.c
+17-9clang/lib/Sema/SemaOpenACCClause.cpp
+2-1clang/include/clang/Basic/DiagnosticSemaKinds.td
+86-104 files

FreeBSD/ports bf7c1e8www/adguardhome distinfo Makefile, www/adguardhome/files patch-go.mod

www/adguardhome: update 0.107.74 → 0.107.76
DeltaFile
+7-7www/adguardhome/distinfo
+0-10www/adguardhome/files/patch-go.mod
+1-2www/adguardhome/Makefile
+8-193 files

FreeBSD/ports fdce4cemisc/lean-ctx distinfo Makefile

misc/lean-ctx: update 3.6.17 → 3.6.18
DeltaFile
+3-3misc/lean-ctx/distinfo
+1-1misc/lean-ctx/Makefile
+4-42 files

FreeBSD/ports 9a4c496databases/weaviate distinfo Makefile

databases/weaviate: update 1.37.4 → 1.37.5
DeltaFile
+5-5databases/weaviate/distinfo
+1-1databases/weaviate/Makefile
+6-62 files

FreeBSD/ports c1aee72misc/timr-tui distinfo Makefile

misc/timr-tui: update 1.8.1 → 1.9.0
DeltaFile
+3-3misc/timr-tui/distinfo
+1-1misc/timr-tui/Makefile
+4-42 files

FreeBSD/ports d4faee3www/authelia distinfo Makefile

www/authelia: update 4.39.19 → 4.39.20
DeltaFile
+7-7www/authelia/distinfo
+1-2www/authelia/Makefile
+8-92 files

FreeNAS/freenas e87ceb4

Empty commit to create PR on github.

You should reset it
DeltaFile
+0-00 files

FreeNAS/freenas d6b5996src/middlewared/middlewared/plugins/acme_dns_authenticator/authenticators shell.py, src/middlewared/middlewared/plugins/filesystem_ perm_check.py

NAS-141161 / 27.0.0-BETA.1 / Switch to truenas_pyos access check function (#19003)

This commit switches from using our process-pool based permissions
checker with on that's streamlined inside truenas_pyos and executes with
GIL dropped. Historically this area has been troublesome to keep good
performance and so simplifying middleware design here is worthwhile.
DeltaFile
+142-39src/middlewared/middlewared/plugins/filesystem_/perm_check.py
+0-86src/middlewared/middlewared/utils/filesystem/access.py
+1-63src/middlewared/middlewared/utils/user_context.py
+11-11tests/api2/test_can_access_as_user.py
+2-2src/middlewared/middlewared/utils/libvirt/cdrom.py
+1-1src/middlewared/middlewared/plugins/acme_dns_authenticator/authenticators/shell.py
+157-2026 files

FreeBSD/src 77fd9e0crypto/openssh sshconnect2.c

upstream: fix hard-to-reach NULL deref during pubkey auth

To hit this, the user must be using a PEM style private key with no
corresponding .pub key adjacent to it.

OpenBSD-Commit-ID: b7150acc5322fa33f21491834d9471fbe3d30f20
(cherry picked from commit cf6c0b3b94cdc223f1b8be1ef2d93e993af5d976)

Reviewed by:    emaste
DeltaFile
+2-2crypto/openssh/sshconnect2.c
+2-21 files

FreeBSD/src b9d16b7sys/kern kern_sig.c, tests/sys/capsicum capmode.cc

sigqueue: In capability mode, only allow signalling self

This is copied from the check in kern_kill.

Reviewed by:    markj, oshogbo
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57244
DeltaFile
+9-3tests/sys/capsicum/capmode.cc
+10-0sys/kern/kern_sig.c
+19-32 files

LLVM/project 53d1fcdllvm/docs ProgrammersManual.rst ReleaseNotes.md, llvm/include/llvm/ADT DenseMap.h

Revert "[DenseMap] Invalidate iterators on erase (#199369)"

This reverts commit a225aafbd1a40be0dd9c31e2d0b0b7c42b9d36e3.
DeltaFile
+7-8llvm/docs/ProgrammersManual.rst
+0-11llvm/unittests/ADT/DenseMapTest.cpp
+0-11llvm/unittests/ADT/DenseSetTest.cpp
+0-5llvm/docs/ReleaseNotes.md
+0-2llvm/include/llvm/ADT/DenseMap.h
+7-375 files