LLVM/project 6f761a9 — flang/docs OpenACC-extensions.md, flang/include/flang/Lower LoweringOptions.def

[flang][OpenACC] Preserve DO CONCURRENT independence in kernels loops (#227775)

`DO CONCURRENT` asserts that its iterations may execute independently.
When it is directly associated with a combined OpenACC `KERNELS LOOP`,
Flang currently lowers the loop as `auto`, unless an explicit `seq`,
`auto`, or `independent` clause is present. This patch adds a
default-enabled extension that preserves the `DO CONCURRENT`
independence assertion by lowering the loop as `independent`. This
behavior is OpenACC-conforming. Explicit loop parallelism clauses
continue to take precedence.

The extension can be disabled with:

`-fno-openacc-acc-kernels-do-concurrent-independent`

This patch also documents the extension and adds lowering tests for its
enabled and disabled behavior.
DeltaFile
+16-4flang/lib/Lower/OpenACC.cpp
+20-0flang/test/Lower/OpenACC/acc-kernels-do-concurrent-independent-flag.f90
+11-0flang/docs/OpenACC-extensions.md
+6-0flang/lib/Frontend/CompilerInvocation.cpp
+6-0flang/include/flang/Lower/LoweringOptions.def
+2-2flang/test/Lower/OpenACC/acc-do-concurrent-locality.f90
+61-61 files not shown
+64-67 files

LLVM/project edb0ee6 — llvm/cmake/modules MLGOLower.cmake, llvm/lib/Analysis CMakeLists.txt

[mlgo] Allow passing pre-emitc-ed models
DeltaFile
+79-58llvm/cmake/modules/MLGOLower.cmake
+98-0llvm/lib/Analysis/models/inline-oz-test-model.inc
+49-0llvm/lib/Analysis/models/regalloc-eviction-test-model.inc
+13-12llvm/lib/CodeGen/CMakeLists.txt
+13-12llvm/lib/Analysis/CMakeLists.txt
+5-11llvm/unittests/Analysis/MLGOUtilsTest.cpp
+257-9320 files not shown
+321-19226 files

FreeBSD/ports 6ba5685 — x11/glcapsviewer Makefile, x11/glcapsviewer/files patch-CMakeLists.txt

x11/glcapsviewer: allow to build with future CMake versions

Drop cmake_policy(VERSION) as cmake_minimum_required(VERSION)
command implicitly calls it too.
DeltaFile
+16-0x11/glcapsviewer/files/patch-CMakeLists.txt
+0-2x11/glcapsviewer/Makefile
+16-22 files

LLVM/project c4ff7a7 — llvm/lib/Transforms/Vectorize LoopVectorizationLegality.cpp, llvm/test/Transforms/LoopVectorize outer_loop_early_exit.ll explicit_outer_nonuniform_inner.ll

[LV] Use SCEV loop-uniformity for outer-loop branch legality (#199632)

This patch refactors the outer-loop vectorization branch legality checks
to reason about conditional branches directly instead of using the old
recursive inner-loop shape check.

The new check allows conditional branches when their condition is
either:

- loop-invariant with respect to the vectorized outer loop, or
- a compare whose operands are both SCEV loop-uniform with respect to
the vectorized outer loop.

Divergent conditional branches are still rejected, now with a more
specific diagnostic.
DeltaFile
+30-108llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+58-2llvm/test/Transforms/LoopVectorize/explicit_outer_uniform_diverg_branch.ll
+34-0llvm/test/Transforms/LoopVectorize/outer_loop_inner_loop_exits.ll
+3-3llvm/test/Transforms/LoopVectorize/explicit_outer_nonuniform_inner.ll
+1-1llvm/test/Transforms/LoopVectorize/outer_loop_early_exit.ll
+126-1145 files

LLVM/project 419fa6a — llvm/cmake/modules MLGOLower.cmake, llvm/lib/Analysis CMakeLists.txt

[mlgo] Allow passing pre-emitc-ed models
DeltaFile
+79-58llvm/cmake/modules/MLGOLower.cmake
+56-0llvm/lib/Analysis/models/inline-oz-test-model.inc
+49-0llvm/lib/Analysis/models/regalloc-eviction-test-model.inc
+13-12llvm/lib/CodeGen/CMakeLists.txt
+13-12llvm/lib/Analysis/CMakeLists.txt
+1-14llvm/lib/CodeGen/MLRegAllocEvictAdvisor.cpp
+211-9620 files not shown
+278-18826 files

LLVM/project 3919526 — llvm/test/Transforms/Attributor nofpclass-atan2.ll

[KnownFPClass][NFC] Update ATTR values for atan2 tests (#224797)

Ran the following command since it was not run for
https://github.com/llvm/llvm-project/pull/223176
```
llvm/utils/update_test_checks.py \
  --opt-binary build/bin/opt \
  llvm/test/Transforms/Attributor/nofpclass-atan2.ll
```
DeltaFile
+48-48llvm/test/Transforms/Attributor/nofpclass-atan2.ll
+48-481 files

LLVM/project 78b41db — mlir/lib/Dialect/Arith/Transforms IntRangeOptimizations.cpp, mlir/test/Dialect/Arith int-range-opts.mlir

[mlir][arith] Handle unsigned moduli in int-range optimizations (#224933)

`DeleteTrivialRem` reads constant moduli as signed values, causing
`remui` operations with sign-bit-set moduli to be rejected. Keep the
modulus as an `APInt` and apply signedness according to the remainder
operation.

Fixes #224630
DeltaFile
+39-0mlir/test/Dialect/Arith/int-range-opts.mlir
+18-11mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
+57-112 files

LLVM/project 8bac179 — utils/bazel/llvm-project-overlay/flang/lib/Optimizer/OpenACC/Transforms BUILD.bazel

[Bazel] Fixes 6a7945b (#227939)

This fixes 6a7945b744e251cd6c843521a5e918e364a49dc5 (#227807).

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

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

FreeNAS/freenas c53b603 — src/middlewared/middlewared/plugins/apps/ix_apps query.py, src/middlewared/middlewared/pytest/unit/plugins/apps test_list_apps.py

Report crash-looping app containers as crashed

## Problem
A container that keeps crashing under the catalog's default `unless-stopped` restart policy is reported by Docker as `restarting`, not `exited`. The container state mapping had no case for it, so it fell through to `exited`. A multi-container app with a healthy sibling then showed as Running, and a single-container app showed as Stopped, which hid its workloads and blocked logs, upgrade and rollback.

## Solution
Map `restarting` to the existing `crashed` container state, so the app is reported as Crashed through the existing aggregation. Added a unit test for the Docker status to container state mapping, which had no coverage.
DeltaFile
+12-1src/middlewared/middlewared/pytest/unit/plugins/apps/test_list_apps.py
+3-1src/middlewared/middlewared/plugins/apps/ix_apps/query.py
+15-22 files

LLVM/project 640e1c6 — clang/lib/CodeGen/TargetBuiltins RISCV.cpp, llvm/include/llvm/IR IntrinsicsRISCV.td

[RISCV][P-ext] Remove riscv_pmulh(u)intrinsics. (#227846)

These are redundant with the llvm.smulh/umulh intrinsics that were added
recently.

Strangely we don't have clang IRgen tests for these intrinsics/builtins,
but we do have a cross-project test for assembly.
DeltaFile
+0-10llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+4-4llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+2-2llvm/test/CodeGen/RISCV/rvp-simd-32.ll
+2-2clang/lib/CodeGen/TargetBuiltins/RISCV.cpp
+0-2llvm/include/llvm/IR/IntrinsicsRISCV.td
+8-205 files

LLVM/project 6a7945b — flang/include/flang/Optimizer/OpenACC Passes.td, flang/lib/Optimizer/OpenACC/Transforms CMakeLists.txt ACCEraseUnusedKernelAllocations.cpp

[flang][openacc] Erase unused stack allocations in compute regions (#227807)

ACCEraseUnusedKernelAllocations only deleted unused fir.allocmem. A
dynamic fir.alloca, memref.alloca, or memref.alloc inside
acc.compute_region has the same problem: fir.declare's debug effect and
the matching free keep it alive through ordinary dead-code elimination,
and lowering turns it into a checked device malloc.
Delete those allocations when they have no uses, or when every use is
fir.freemem, memref.dealloc, a view such as fir.convert, or fir.declare.
A load, store, or other memory use still keeps the allocation.

This can happen when using stack arrays flags which replace the
fir.allocmem
DeltaFile
+39-19flang/lib/Optimizer/OpenACC/Transforms/ACCEraseUnusedKernelAllocations.cpp
+43-0flang/test/Fir/OpenACC/acc-erase-unused-kernel-allocations.mlir
+10-8flang/include/flang/Optimizer/OpenACC/Passes.td
+1-0flang/lib/Optimizer/OpenACC/Transforms/CMakeLists.txt
+93-274 files

OpenBSD/src qXJOc94 — usr.bin/ssh sftp-client.c sftp.c

   sftp: be stricter in accepting paths returned by the server for
   SSH_FXP_REALPATH or SSH2_FXP_READDIR replies, as these can be
   used in some situations to decide the destination path for recursive
   transfers.

   Report and patch from Junghoon Cho
VersionDeltaFile
1.260+10-4usr.bin/ssh/sftp.c
1.188+3-2usr.bin/ssh/sftp-client.c
+13-62 files

LLVM/project 15d8013 — llvm/lib/Target/AMDGPU MIMGInstructions.td

[AMDGPU] Use isGFX125xOnly as the assembler predicate for tensor load/store (#227887)

The VIMAGE_TENSOR gfx1250 real instructions are only available on
GFX125x, so predicate the assembler on isGFX125xOnly rather than on the
HasTDMInsts feature.
DeltaFile
+1-1llvm/lib/Target/AMDGPU/MIMGInstructions.td
+1-11 files

LLVM/project d87168d — llvm/test/Transforms/Attributor nofpclass-fadd-fsub.ll

[Attributor][NFC] rename fadd_double --> fadd_self (#227931)

I have renamed `fadd_double` to `fadd_self` in `nofpclass-fadd-fsub.ll`
to make it clear that it refers to doubling `x += x` and **not** the
`double` type.

This makes it consistent with other tests that use the name
`fadd_double` to refer to the `double` type.
DeltaFile
+88-88llvm/test/Transforms/Attributor/nofpclass-fadd-fsub.ll
+88-881 files

NetBSD/pkgsrc Cd8GF6h — net Makefile

   net/Makefile: Use tabs instead of spaces
VersionDeltaFile
1.1669+3-3net/Makefile
+3-31 files

NetBSD/pkgsrc JC5b5gG — graphics Makefile

   graphics/Makefile: sort SUBDIR
VersionDeltaFile
1.1131+2-2graphics/Makefile
+2-21 files

LLVM/project 14304b9 — clang/test/CodeGen/RISCV rvp-intrinsics.c

[RISCV] Re-generate rvp-intrinsics.c using common prefix. NFC (#227836)

The common prefix was added while widening unzip was in review.
DeltaFile
+168-360clang/test/CodeGen/RISCV/rvp-intrinsics.c
+168-3601 files

LLVM/project 17fdd96 — llvm/include/llvm/Option LibraryOptions.h, llvm/lib/CGData StableFunctionMap.cpp

[Option] Declare library command line options in TableGen (#226087)

Implement the first step of
https://discourse.llvm.org/t/rfc-declare-library-command-line-options-in-tablegen-one-struct-per-library/91877:
the TableGen backend, the cl:: dispatch, and LLVMCGData's 13 cl::opts as
the first migrated library.

A .td with an `OptionsStruct` def declares a library's options with
`BoolField` (`-x`, `-x=<bool>`) and `ValueField` (`-x=v`,
`-x v`). `-gen-opt-parser-defs` generates a struct with one member per
option, a `Global` instance, the option table, and `apply(const Arg &)`.
A member is named after its option (`-codegen-data-generate` sets
`codegen_data_generate`) unless the defm names it.

`cl::ParseCommandLineOptions` keeps owning argv: a static
`opt::RegisterLibraryOptions<T>` registers the struct as a
`cl::LibraryOptions`, and an argument naming none of cl::'s options is
dispatched to the library that declares it. `-help-hidden` lists library
options (`let Hidden = 0 in` also lists them in `-help`),

    [7 lines not shown]
DeltaFile
+149-2llvm/utils/TableGen/OptionParserEmitter.cpp
+141-0llvm/unittests/Support/CommandLineTest.cpp
+115-0llvm/unittests/Option/LibraryOptionsTest.cpp
+95-0llvm/include/llvm/Option/LibraryOptions.h
+92-2llvm/lib/Support/CommandLine.cpp
+10-47llvm/lib/CGData/StableFunctionMap.cpp
+602-5118 files not shown
+919-8624 files

LLVM/project 8b1d8d1 — llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine intrinsic-select.ll

[InstCombine] Fold select of pow into select of the differing operand

When both arms of a select are calls to `llvm.pow` with one use that
differ in exactly one operand, sink the select into that operand:

$$
\mathrm{select}(c,\ x^{y},\ x^{z}) \rightarrow x^{\mathrm{select}(c,\ y,\ z)}
$$

$$
\mathrm{select}(c,\ x^{z},\ y^{z}) \rightarrow \mathrm{select}(c,\ x,\ y)^{z}
$$

This removes one `pow` call. FMF are intersected and debug locations
are merged. The transform is skipped when a differing operand is a
constant, since that may enable a cheaper lowering (e.g.
$x^2 \rightarrow x \cdot x$).
DeltaFile
+24-32llvm/test/Transforms/InstCombine/intrinsic-select.ll
+35-0llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+59-322 files

LLVM/project 75e37b3 — llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine intrinsic-select.ll

Update for comments
DeltaFile
+15-20llvm/test/Transforms/InstCombine/intrinsic-select.ll
+4-0llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+19-202 files

LLVM/project 9747c7f — llvm/test/CodeGen/AMDGPU simplify-libcalls.ll amdgpu-simplify-libcall-pow.ll

Fix lit test issue.
DeltaFile
+18-36llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-rootn.ll
+9-11llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-pow.ll
+2-4llvm/test/CodeGen/AMDGPU/simplify-libcalls.ll
+29-513 files

LLVM/project 6fa6d14 — llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine select-fcmp-fmul-zero-absorbing-value.ll

Use TriviallyVectorizable
DeltaFile
+10-4llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+2-3llvm/test/Transforms/InstCombine/select-fcmp-fmul-zero-absorbing-value.ll
+12-72 files

LLVM/project 13e742a — llvm/test/CodeGen/AMDGPU simplify-libcalls.ll

[AMDGPU] Autogenerate checks in simplify-libcalls.ll. NFC
DeltaFile
+1,680-274llvm/test/CodeGen/AMDGPU/simplify-libcalls.ll
+1,680-2741 files

FreeBSD/ports 7ed5bf4 — math/R-cran-partitions Makefile distinfo

math/R-cran-partitions: Update to 1.11.1
DeltaFile
+3-3math/R-cran-partitions/distinfo
+1-1math/R-cran-partitions/Makefile
+4-42 files

FreeBSD/ports 8f69e5e — math/R-cran-sf Makefile distinfo

math/R-cran-sf: Update to 1.1.3
DeltaFile
+3-3math/R-cran-sf/distinfo
+1-1math/R-cran-sf/Makefile
+4-42 files

FreeBSD/ports 47ccb89 — math/R-cran-zoo Makefile distinfo

math/R-cran-zoo: Update to 1.9.1
DeltaFile
+3-3math/R-cran-zoo/distinfo
+1-1math/R-cran-zoo/Makefile
+4-42 files

LLVM/project 6403c4e — llvm/test/Transforms/InstCombine intrinsic-select.ll

[InstCombine] Add tests for select of pow with one differing operand

Add tests for select between two `llvm.pow` calls whose operands differ in
exactly one position, covering scalar and vector types, FMF, !prof
metadata, constant operands, and negative cases (multiple differing
operands, extra uses, mismatched intrinsics).
DeltaFile
+342-0llvm/test/Transforms/InstCombine/intrinsic-select.ll
+342-01 files

FreeBSD/ports 8241937 — graphics/pdfium distinfo

graphics/pdfium: unbreak fetch

File sizes seem to have changed.

PR:             293714
DeltaFile
+65-65graphics/pdfium/distinfo
+65-651 files

FreeBSD/ports 6825419 — biology/jalview distinfo

biology/jalview: fix fetch
DeltaFile
+3-3biology/jalview/distinfo
+3-31 files

LLVM/project 2f333c0 — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU finalize-isel-kill-scc-vcc.mir

[AMDGPU] Do not update livein when splitting SI_KILL
DeltaFile
+0-73llvm/test/CodeGen/AMDGPU/finalize-isel-kill-scc-vcc.mir
+1-1llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+1-742 files