LLVM/project a2559f9 — llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn build] Port f59521e7ec81 (#247905)
DeltaFile
+2-0llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+2-01 files

LLVM/project 9fb9b5d — llvm/utils/gn/secondary/clang-tools-extra/clang-doc BUILD.gn

[gn build] Port ac1c9a26517a (#247904)
DeltaFile
+1-0llvm/utils/gn/secondary/clang-tools-extra/clang-doc/BUILD.gn
+1-01 files

LLVM/project 4619c8b — utils/bazel/llvm-project-overlay/openmp/runtime/src BUILD.bazel

[bazel] Add -lrt to openmp (#247866)

When using the hermetic toolchain, which targets glibc 2.28 by default,
this is required. It doesn't hurt newer glibc versions
DeltaFile
+3-0utils/bazel/llvm-project-overlay/openmp/runtime/src/BUILD.bazel
+3-01 files

LLVM/project d394c04 — llvm/utils/gn/secondary/llvm/lib/Target/Hexagon BUILD.gn

[gn build] Port 5c5723624955 (#247903)
DeltaFile
+1-0llvm/utils/gn/secondary/llvm/lib/Target/Hexagon/BUILD.gn
+1-01 files

LLVM/project 5e3ec1b — llvm/utils/gn/secondary/llvm/tools/llvm-cov BUILD.gn

[gn build] Port 0f7957afa2bc (#247902)
DeltaFile
+1-0llvm/utils/gn/secondary/llvm/tools/llvm-cov/BUILD.gn
+1-01 files

LLVM/project 42de2e0 — llvm/lib/Target/AMDGPU GCNSchedStrategy.cpp, llvm/test/CodeGen/AMDGPU schedule-spill-check-effective-occupancy.mir

[AMDGPU] Respect retained occupancy when comparing schedules

The scheduler can discard a schedule that spills fewer registers
because it compares occupancy beyond what the function can retain.
Cap both pressure comparisons at the function's retained occupancy.

A synthetic gfx1200 kernel spills 16 SGPRs instead of 32 at the same
two-wave limit.

AI assisted.
DeltaFile
+112-0llvm/test/CodeGen/AMDGPU/schedule-spill-check-effective-occupancy.mir
+5-2llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+117-22 files

NetBSD/pkgsrc-wip 635574a — zipios buildlink3.mk distinfo, zipios/patches patch-Makefile.in patch-cmake_CMakeLists.txt

zipios: update to 2.3.4
DeltaFile
+22-27zipios/PLIST
+0-15zipios/patches/patch-Makefile.in
+15-0zipios/patches/patch-cmake_CMakeLists.txt
+6-6zipios/Makefile
+4-4zipios/distinfo
+1-1zipios/buildlink3.mk
+48-531 files not shown
+48-557 files

LLVM/project 0084b89 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN/PRE pre-basic-add.ll

[GVN] Treat DeadBlocks as poison

Same as PRE load, a deadblock should not be treated as something need
insertion. Insert poision for this.
DeltaFile
+70-0llvm/test/Transforms/GVN/PRE/pre-basic-add.ll
+4-0llvm/lib/Transforms/Scalar/GVN.cpp
+74-02 files

LLVM/project bb6c594 — compiler-rt/lib/fuzzer FuzzerUtilPosix.cpp FuzzerUtil.h, compiler-rt/test/fuzzer windows-immediate-exit-dll-detach.test WindowsImmediateExitDllDetachTest.cpp

[libFuzzer] Use TerminateProcess for immediate exits on Windows (#247877)

On Windows, `_Exit()` calls `ExitProcess()`, which kills all other threads
and then runs `DllMain(DLL_PROCESS_DETACH)` for every loaded DLL while
holding the loader lock. libFuzzer often exits from a non-main thread
(timeout, RSS limit, or crash handler). If a DLL's detach handler waits on a
lock or a thread that was already killed, the process hangs instead of
exiting. We saw this on ClusterFuzz after `SUMMARY: libFuzzer: timeout`.

Add `ExitImmediately()`, which uses `TerminateProcess()` on Windows to skip
DLL detach, the same way as `internal__exit()` in sanitizer_common. Other
platforms still use `_Exit()`. Use it for all existing `_Exit()` calls in
libFuzzer.

Assisted-by: Gemini
DeltaFile
+44-0compiler-rt/test/fuzzer/WindowsImmediateExitDllDetachTest.cpp
+13-11compiler-rt/lib/fuzzer/FuzzerLoop.cpp
+18-0compiler-rt/test/fuzzer/windows-immediate-exit-dll-detach.test
+10-0compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+4-0compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
+4-0compiler-rt/lib/fuzzer/FuzzerUtil.h
+93-112 files not shown
+97-128 files

LLVM/project cc89e39 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

[AMDGPU][NFC] Precommit test for SIFixSGPRCopies PHI-to-AGPR rewrite (#247814)

`processPHINode` moves a VGPR PHI to an AGPR class when all of its uses
are copies to AGPRs. A `DBG_VALUE` use of the PHI blocks the move, so
the class depends on `-g`.

The checks show the current behavior: the PHIs in `phi_agpr_use` and
`phi_agpr_use_64` become `agpr_32` and `areg_64_align2`, while the one
in `phi_agpr_use_dbg_value` stays `vgpr_32`.

This came up in the review of #245761.

Assisted-by: Claude Opus 5.5

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Co-authored-by: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
DeltaFile
+188-0llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+188-01 files

LLVM/project e634d61 — flang/include/flang/Evaluate expression.h, flang/lib/Evaluate expression.cpp variable.cpp

[flang][OpenMP] Compare complex parts and literal substrings by value

Expr equality had two gaps:
- ComplexComponent inherited Operation::operator==, which ignores
  isImaginaryPart, so `real(z)` and `aimag(z)` compared equal.
- Substring compared literal parents by StaticDataObject::Pointer, so
  substrings of identical literals, such as `'ab'(i:i)`, never compared
  equal.

METADIRECTIVE lowering turns `user={condition(...)}` selectors into an
IF/ELSE chain. Since a condition is false on its ELSE path, Flang drops
the other candidates with the same condition there, using Expr equality
to compare them.

The first gap drops a different condition:

```
  !$omp metadirective &
  !$omp& when(user={condition(real(z) > 0.0)}: taskyield) &

    [26 lines not shown]
DeltaFile
+36-0flang/test/Lower/OpenMP/metadirective-user.f90
+24-0flang/unittests/Evaluate/expression.cpp
+12-2flang/lib/Evaluate/variable.cpp
+4-0flang/lib/Evaluate/expression.cpp
+1-0flang/include/flang/Evaluate/expression.h
+77-25 files

LLVM/project e05e460 — llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/AArch64 hadd-combine.ll

[DAG] combineShiftToAVG - match sub(A, not(B)) as avgceil

A - ~B == A + B + 1. DAGCombiner turns add(add(A, B), 1) into
sub(A, not(B)) if preferIncOfAddToSubOfNot is false, as on X86 for
multi-element vectors and on AArch64 for all vectors. D148809 delays
this until after legalization if the add of 1 has nuw or nsw.
combineShiftToAVG does not recognize the sub form, so the ceil average
is lost if the fold runs first. Match the sub form as well. If the not
has other users, only do it when the AVG node is legal or custom.

This shows up when the IR is written as a sub of a not, or when a
freeze is pushed through the adds and drops their flags. With #152107
the latter loses vpavgb/vpavgw in five AVX512F maskz tests of
avg-mask.ll, which match main again with this change.

Where the target expands the AVG node, the sub form now gets the code
of the add form, e.g. on RISC-V P, which has AVGSUBFLOOR but no
AVGCEIL, and for some Hexagon and ARM NEON types.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+62-325llvm/test/CodeGen/X86/avg.ll
+36-26llvm/test/CodeGen/AArch64/hadd-combine.ll
+30-8llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+128-3593 files

LLVM/project d95231e — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll

Workaround inifinite loop
DeltaFile
+115-8llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+9-1llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+1-2llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+125-113 files

LLVM/project 3be2b6c — llvm/lib/Target/X86 X86FastPreTileConfig.cpp X86PreTileConfig.cpp, llvm/test/CodeGen/X86/ACEV1 acev1-config-resets-bsr.ll acev1-bsr-config-order.ll

[X86][ACEV1] Keep a tile config from resetting a written BSR

ldtilecfg runs bsr_init(), so a config the compiler places between a
BSR write and a read of that value throws the scales away. The config
cannot move above the write, because a call makes it volatile and -O0
puts one at the head of every block that uses tiles.

Mark the configs as writing bsr0, give BSR0 a register class so a
spill has a size, and preserve the value across the configs that
reach a read. Memory forms exist both ways, so this costs four
instructions.

Co-authored-by: Claude Opus 5 <noreply at anthropic.com>
DeltaFile
+174-0llvm/test/CodeGen/X86/ACEV1/acev1-bsr-config-order.ll
+100-0llvm/lib/Target/X86/X86MachineFunctionInfo.cpp
+36-0llvm/test/CodeGen/X86/ACEV1/acev1-config-resets-bsr.ll
+20-0llvm/lib/Target/X86/X86InstrInfo.cpp
+14-5llvm/lib/Target/X86/X86PreTileConfig.cpp
+13-1llvm/lib/Target/X86/X86FastPreTileConfig.cpp
+357-64 files not shown
+380-810 files

FreeBSD/src 1109b4c — sys/netipsec ipsec_output.c, tests/sys/netipsec/tunnel flowlabel.sh

netipsec: Relabel only an outer IPv6 header that a tunnel built

When transport mode requests follow a tunnel mode request in a bundle,
ipsec_process_done() sets the flow label of the outer IPv6 header from
the outermost SA.  It checks only that the policy has such a tunnel
request, not that it was applied.  A tunnel request at level use
without an SA is skipped, and a transport request after it, unless it
names a destination other than the packet's, is then applied to the
packet's own header.  With a policy such as
"esp/tunnel/A-B/use ah/transport//require", an AH SA between the hosts
and no ESP SA, every IPv6 packet leaves with the label of the AH SA.  A
forwarded packet loses the label its source chose, which RFC 6437 asks
forwarding nodes to leave alone, and every flow through that SA gets
the same one.

Record in the packet's output history the mode of the request each SA
was applied for, rather than the SA's own, which may be "any", and
relabel only when the history holds a record of one of the policy's
earlier tunnel mode requests.  Nothing else reads the mode in the

    [11 lines not shown]
DeltaFile
+122-17tests/sys/netipsec/tunnel/flowlabel.sh
+47-15sys/netipsec/ipsec_output.c
+169-322 files

LLVM/project 7eae833 — clang/lib/Analysis/FlowSensitive DataflowEnvironment.cpp, clang/unittests/Analysis/FlowSensitive DataflowEnvironmentTest.cpp

Fix a crash in handling this-pointer captured in nested lambdas in field initializer. (#245491)

Environment.initialize() currently crashes when handling a this-pointer
captured by a nested lambda expression appearing in a field initializer
of a struct. Consider the following example:

```cpp
struct {
  int f = int f{[this]() { return [this]() { return 1; }(); }()};
}
```

When handling the this-pointer captured in the inner lambda,
Environment.initialize() tries to get the enclosing record by calling
getLambdaContext() on the lambda's Closure. However, getLambdaContext()
only works for the outermost lambda. For inner lambdas, it just returns
nullptr, which causes a null-dereference.

This PR fixes that issue by introducing a helper function that finds the
outermost lambda and get getLambdaContextDecl() from it.
DeltaFile
+74-0clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp
+22-1clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
+96-12 files

LLVM/project 1d0ddf8 — flang/include/flang/Evaluate expression.h, flang/lib/Evaluate expression.cpp variable.cpp

[flang][OpenMP] Compare complex parts and literal substrings by value

Expr equality had two gaps:
- ComplexComponent inherited Operation::operator==, which ignores
  isImaginaryPart, so `real(z)` and `aimag(z)` compared equal.
- Substring compared a literal parent's StaticDataObject::Pointer, so
  substrings of two identical literals, such as `'ab'(i:i)`, never
  compared equal.

METADIRECTIVE lowering uses Expr equality to drop candidates whose
runtime condition already failed. With

```
  !$omp metadirective &
  !$omp& when(user={condition(real(z) > 0.0)}: taskyield) &
  !$omp& when(user={condition(aimag(z) > 0.0)}: taskwait)
```

the ELSE path of `real(z) > 0.0` dropped the TASKWAIT candidate, so

    [9 lines not shown]
DeltaFile
+36-0flang/test/Lower/OpenMP/metadirective-user.f90
+24-0flang/unittests/Evaluate/expression.cpp
+12-2flang/lib/Evaluate/variable.cpp
+4-0flang/lib/Evaluate/expression.cpp
+1-0flang/include/flang/Evaluate/expression.h
+77-25 files

FreeBSD/ports ee233e1 — editors/fresh Makefile Makefile.crates

editors/fresh: Update to 0.5.10
DeltaFile
+39-5editors/fresh/distinfo
+18-1editors/fresh/Makefile.crates
+1-1editors/fresh/Makefile
+58-73 files

LLVM/project 8675cbb — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, llvm/lib/Target/Hexagon HexagonGlobalSchedulerV2.cpp

Merge remote-tracking branch 'llvm/users/reble/amdgpu-phi-agpr-precommit-test' into amdgpu-phi-hasuses-nfc

# Conflicts:
#       llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
DeltaFile
+5,269-0llvm/lib/Target/Hexagon/HexagonGlobalSchedulerV2.cpp
+1,922-0mlir/test/Dialect/X86/vector-contract-16bit-fp-to-fma.mlir
+0-1,425mlir/test/Dialect/X86/vector-contract-bf16-to-fma.mlir
+722-262llvm/test/Transforms/LoopUnroll/RISCV/outer-loop-unroll-threshold.ll
+953-0llvm/test/Transforms/LoopVectorize/any-of-non-cmp-cond.ll
+852-67clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+9,718-1,7541,825 files not shown
+70,934-18,6391,831 files

LLVM/project a9aaffd — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN pr17852.ll load-dead-block.ll

[GVN] Treat Deadblock as Available

PRE insert load instruction if there is only one predecessor cannot be
eliminated. A deadblock can actually be treat as Available so that it
doesn't count into the BB that needs to insert load.
DeltaFile
+62-0llvm/test/Transforms/GVN/load-dead-block.ll
+15-3llvm/lib/Transforms/Scalar/GVN.cpp
+4-11llvm/test/Transforms/GVN/PRE/load-pre-num-unavailable-preds-crash.ll
+5-9llvm/test/Transforms/GVN/pr17852.ll
+86-234 files

LLVM/project 0fe0898 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

Apply suggestion from review
DeltaFile
+1-1llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+1-11 files

LLVM/project 46d10a7 — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution trip-count-loop-guard-ne-extreme.ll

[SCEV] Rewrite x != C for an Max Constant C in loop guards (#240637)

For a constant C that is the signed maximum, unsigned maximum or signed
minimum, x != C is x s< C, x u< C or x s> C respectively. Treat it as
the strict comparison, so the loop guards bound x. x != 0 is already
handled.

For example, the exit count of `iv + 2 s< n` under `n != SMAX` is now
computed, so a following `iv s< 0` check folds.

ir diff: mostly changes in asn1 . 

https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1999/changes#diff-2e0d815dad90d17edadffc349d183fdac17ea400a21634b1e25097ed0010ba1f

This PR is needed along-side next PR:
https://github.com/llvm/llvm-project/pull/240606 for handling loop-guard
based facts.

combined compile-time impact of two PRs: #240606 and current:

    [2 lines not shown]
DeltaFile
+214-0llvm/test/Analysis/ScalarEvolution/trip-count-loop-guard-ne-extreme.ll
+74-0llvm/test/Transforms/IndVarSimplify/iv-nonneg-loop-guard-ne-smax.ll
+13-0llvm/lib/Analysis/ScalarEvolution.cpp
+301-03 files

OpenZFS/src db7c3d6 — tests/zfs-tests/tests/functional/fault auto_offline_001_pos.ksh

ZTS: auto_offline_001_pos: rescan only the scsi_debug host

insert_disk without a host makes scan_scsi_hosts write "- - -" to the
scan file of every SCSI host. On a VM with eight virtio_scsi
controllers, each of those scans takes about 9 seconds: for every LUN
it probes and does not find, the scan allocates a temporary device and
frees it again, and each time the host's shared tag set is updated,
which freezes the queue of the disk behind it. A reattach then takes
about 67 seconds, and the test, which reattaches its disk eight
times, is killed at its 10 minute timeout.

Every other caller of insert_disk passes the host of its device. Do the
same here: record the scsi_debug host before the first removal, while
the device still exists, and rescan only that host.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Closes #20060
DeltaFile
+6-3tests/zfs-tests/tests/functional/fault/auto_offline_001_pos.ksh
+6-31 files

LLVM/project 21734e3 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

Update llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir

Co-authored-by: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
DeltaFile
+1-1llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+1-11 files

LLVM/project bf89f26 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

[AMDGPU] Precommit test for SIFixSGPRCopies PHI-to-AGPR rewrite

processPHINode moves a VGPR PHI to an AGPR class when all of its uses
are copies to AGPRs. A DBG_VALUE use currently blocks the move, so the
chosen class depends on -g.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+188-0llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+188-01 files

OpenBSD/src d7ppylN — regress/sys/net/pf_state rdrcollide_syn.py

   Make pf state test more strict.
VersionDeltaFile
1.2+1-1regress/sys/net/pf_state/rdrcollide_syn.py
+1-11 files

LLVM/project a2ac69d — utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/linux/syscall_wrappers BUILD.bazel

[Bazel] Fixes 7e55c59 (#247873)

This fixes 7e55c59000d9938ccffaa98764226b26c3d893c3 (#247852).

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

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+8-0utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/linux/syscall_wrappers/BUILD.bazel
+8-01 files

OpenBSD/ports ysjcrbL — emulators/wine/files/winesndio.drv sndio.c, emulators/wine/patches patch-dlls_ntdll_signal_x86_64_c patch-dlls_mountmgr_sys_unixlib_c

   bigger wine update, some key changes of the port summarized here:
   - update to version 11.23, the latest release
   - switch to new sndio backend (by me and armani@ in collaboration)
   - remove USE_WXNEEDED and the corresponding patch in configure.ac;
     wine now works with W^X.
   - wine gs patching can now to inspected with WINEDEBUG=+gsstats
   - futex based sync instead of kqueue
   - arc4random instead of /dev/urandom in a few places
   - README additions about MIDI use, how to use egdb(1) with wine
     (by Andrii)
   - and more...

   This is the result of effectively several weeks of collaboration and
   has undergone a fair amount of testing.

   Besides above mentioned, other notable contributions are by Andrii,
   fabien@, brynet@.

   Caveat: The sndio backend currently only implements the play, but not

    [2 lines not shown]
VersionDeltaFile
1.1+1,927-0emulators/wine/files/winesndio.drv/sndio.c
1.3+244-32emulators/wine/patches/patch-dlls_ntdll_unix_virtual_c
1.3+70-19emulators/wine/patches/patch-configure_ac
1.2+69-8emulators/wine/patches/patch-dlls_ntdll_unix_gs_openbsd_c
1.1+47-0emulators/wine/patches/patch-dlls_mountmgr_sys_unixlib_c
1.1+46-0emulators/wine/patches/patch-dlls_ntdll_signal_x86_64_c
+2,403-5936 files not shown
+2,720-16542 files

FreeBSD/ports 60eae12 — devel/py-coverage Makefile distinfo

devel/py-coverage: Update to 7.18.0
DeltaFile
+3-3devel/py-coverage/distinfo
+1-1devel/py-coverage/Makefile
+4-42 files

NetBSD/pkgsrc-wip 488fbc0 — libfixposix DESCR distinfo

libfixposix: imported to -current
DeltaFile
+0-25libfixposix/PLIST
+0-25libfixposix/Makefile
+0-14libfixposix/buildlink3.mk
+0-5libfixposix/distinfo
+0-2libfixposix/DESCR
+0-715 files