LLVM/project 0da7e1a — llvm/test/CodeGen/X86/apx reloc-opt.ll

[X86][APX] Test the relocation of an NF add

test_regclass_not_updated_by_regalloc_2 only produced an NDD/NF add
with a GOT operand because the allocator happened to give the add a
destination different from its source. With SlotIndexes compaction it
picks the same register, so the add is compressed to the legacy form
and the CODE_6 TODO lost its test.

Add a function whose add keeps its source live, so it stays NDD and
becomes NF under any allocation.
DeltaFile
+20-1llvm/test/CodeGen/X86/apx/reloc-opt.ll
+20-11 files

LLVM/project 50b467f — llvm/test/CodeGen/X86 vector-interleaved-store-i64-stride-7.ll vector-deinterleave8-i64.ll

[X86] Enable SlotIndexes compaction by default

Compacting SlotIndexes before greedy allocation drops the entries of
erased instructions, so live range sizes and instruction distances
reflect the code being allocated rather than how much was erased
before it. AMDGPU has done this since #235806; do the same for X86.

Codegen changes only through allocation: no new crashes, verifier
errors or allocation failures in the lit suites, including
EXPENSIVE_CHECKS, and a stage-2 build of LLVM, clang and lld with
-verify-machineinstrs passes its own tests. On llvm-test-suite at -O3,
spills drop 0.3% and .text 0.06%, with compile time unchanged.

Most test updates are regenerated checks. misched-matmul now inserts
20 spills instead of 24. live-debug-vars-stale-slotindexes.mir gets
one more use of %27 so that accumulate_fit still reaches the stale
index path it was written for.
DeltaFile
+20,796-20,889llvm/test/CodeGen/X86/vector-interleave7-i16.ll
+17,854-17,989llvm/test/CodeGen/X86/vector-interleave7-i32.ll
+17,166-17,229llvm/test/CodeGen/X86/vector-interleave6-i16.ll
+15,403-15,465llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-7.ll
+13,897-13,898llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+13,329-13,243llvm/test/CodeGen/X86/vector-interleaved-store-i64-stride-7.ll
+98,445-98,713513 files not shown
+675,159-677,697519 files

LLVM/project 579c419 — llvm/lib/Transforms/IPO AttributorAttributes.cpp, llvm/test/Transforms/Attributor value-simplify-dominance.ll

[Attributor] Do not use the exclusion set for the dominating-write query (#242762)

Fixes #242203.

When determining whether a write in another function can be skipped
because of a dominating write, `AAPointerInfoImpl` asks
`AAInterFnReachability` whether the function containing that write can
be reached from the least dominating write, and passes the exclusion set
to this query. The exclusion set contains the instruction itself as well
as other must-write accesses to the same location. This logic was
introduced in b84ea7a47586.

No member of the exclusion set should block this query. First, the
instruction may be in a cycle: the write can happen after it and still
be observed by a later execution of it. In the reproducer, a loop
counter is incremented by a callee: every path from `store i32 0` to
`call @inc` goes through the load in the loop header, so the store in
`@inc` was considered not to interfere. It was deleted and the load was
folded to `0`, turning the loop into an infinite loop.

    [32 lines not shown]
DeltaFile
+188-0llvm/test/Transforms/Attributor/value-simplify-dominance.ll
+5-8llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+193-82 files

OPNSense/core 8b95022 — src/opnsense/www/js opnsense_bootgrid.js

simplify slightly
DeltaFile
+70-80src/opnsense/www/js/opnsense_bootgrid.js
+70-801 files

LLVM/project fcba520 — llvm/include/llvm/CodeGen Rematerializer.h, llvm/lib/CodeGen Rematerializer.cpp

[CodeGen][Rematerializer] Fix region bounds tracking logic

This addresses a few edge-case/rare issues with keeping the bounds of
rematerialization regions valid and up-to-date as rematerializations
happen.

1. An upper region boundary deleted through dead-def elimination needs
   to be pushed to the next valid instruction.
2. Updating any region boundary in any case may require updating
   boundaries of other "touching" regions to keep them valid too. Issues
   could typically happen when a rematerialization region's end would be
   the beginning of the next one. Receeding the beginning of the latter
   region also requires receeding the ending of the former region to
   keep them non-overlapping.

Added unit-tests would crash without changes.
DeltaFile
+219-31llvm/unittests/CodeGen/RematerializerTest.cpp
+110-29llvm/lib/CodeGen/Rematerializer.cpp
+39-6llvm/include/llvm/CodeGen/Rematerializer.h
+368-663 files

pkgng/pkgng 2425164 — . NEWS, docs pkg-search.8

search: match several fields with -S any

The search fields were either a single column or the fixed combination of
the comment and the description, so matching a keyword in the name, the
origin, the comment and the description at once, the way the ports tree
searches its index, required as many runs.

Add an "any" field composing them, sorted by package name.

Fixes: #2700
DeltaFile
+46-0tests/frontend/search.sh
+21-0libpkg/repo/binary/query.c
+8-0docs/pkg-search.8
+7-0src/search.c
+2-0NEWS
+1-0libpkg/pkg.h.in
+85-06 files

OPNSense/core f04357b — src/opnsense/www/js opnsense_bootgrid.js

bootgrid: no callers for this
DeltaFile
+0-11src/opnsense/www/js/opnsense_bootgrid.js
+0-111 files

LLVM/project 91c79c7 — llvm/include/llvm/CodeGen Rematerializer.h, llvm/lib/CodeGen Rematerializer.cpp

[CodeGen][Rematerializer] Region upper-bounds are not rematerializable

Upper-bounds of rematerialization regions should not be considered
rematerializable instructions since they are semantically outside the
regions they delimitate. Rematerializing them would make region bounds
invalid.
DeltaFile
+55-2llvm/unittests/CodeGen/RematerializerTest.cpp
+13-41llvm/lib/CodeGen/Rematerializer.cpp
+6-5llvm/include/llvm/CodeGen/Rematerializer.h
+74-483 files

OPNSense/core 88ebe8f — src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api FirewallController.php, src/opnsense/mvc/app/views/OPNsense/Hostdiscovery settings.volt

bootgrid: add pagination-aware aux data refreshes. Adjust batched hostname fetch in host discovery accordingly
DeltaFile
+73-31src/opnsense/www/js/opnsense_bootgrid.js
+25-56src/opnsense/mvc/app/views/OPNsense/Hostdiscovery/settings.volt
+1-1src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/FirewallController.php
+99-883 files

FreeBSD/ports e6a3a36 — sysutils/zellij Makefile Makefile.crates, sysutils/zellij/files patch-zellij-utils_Cargo.toml patch-Cargo.lock

sysutils/zellij: Update to 0.46.1

- Enable linking with system curl
- Regenerate patches
DeltaFile
+323-45sysutils/zellij/distinfo
+161-22sysutils/zellij/Makefile.crates
+19-28sysutils/zellij/files/patch-zellij-client_src_lib.rs
+4-4sysutils/zellij/files/patch-Cargo.lock
+5-3sysutils/zellij/Makefile
+2-2sysutils/zellij/files/patch-zellij-utils_Cargo.toml
+514-1046 files

LLVM/project 74e01f5 — llvm/lib/Target/SPIRV SPIRVNonSemanticDebugHandler.cpp, llvm/test/CodeGen/SPIRV/debug-info debug-typedef-void.ll

[SPIRV] Emit DebugTypedef with DebugInfoNone base for typedef void (#244223)

Typedefs now use the same recently introduced helper and can handle a
typedef with no base type (`typedef void V;`). It is now emitted as a
`DebugTypedef` with a `DebugInfoNone` base.

`spirv-val` now accepts `DebugInfoNone` as a debug type operand
(https://github.com/KhronosGroup/SPIRV-Tools/issues/6744). The standard
might actually allow DebugInfoNone in all NSDI operands (see
https://github.com/KhronosGroup/SPIRV-Tools/issues/7025).

The tests run `spirv-val` too.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+29-0llvm/test/CodeGen/SPIRV/debug-info/debug-typedef-void.ll
+1-1llvm/lib/Target/SPIRV/SPIRVNonSemanticDebugHandler.cpp
+30-12 files

LLVM/project e49879e — flang-rt/lib/runtime namelist.cpp, flang-rt/unittests/Runtime Namelist.cpp

[flang-rt] Don't dereference an empty optional at the end of NAMELIST input (#245579)

InputNamelist checked the character after a group's last item with
`*next && ...`.
When the input ends before the group's terminating '/', `next` is empty,
so `*next`
dereferences an empty optional. With libstdc++ assertions on, the test
from issue
#244882 aborts at this dereference; the SIGTRAP in that issue is from a
build against
libc++. Test `next` instead.

Such input still gets the existing "No '/' found after NAMELIST group"
error.

Fixes #244882

Assisted-by: AI
DeltaFile
+68-0flang-rt/unittests/Runtime/Namelist.cpp
+1-1flang-rt/lib/runtime/namelist.cpp
+69-12 files

LLVM/project 1e2b99d — clang/docs LanguageExtensions.md, clang/include/clang/Options Options.td

Enable driver changes for fexec-charset
DeltaFile
+14-6clang/lib/Driver/ToolChains/Clang.cpp
+14-4clang/include/clang/Options/Options.td
+11-3clang/test/Driver/clang_f_opts.c
+10-0llvm/lib/Support/TextEncoding.cpp
+4-3clang/test/Driver/cl-options.c
+3-3clang/docs/LanguageExtensions.md
+56-193 files not shown
+60-199 files

LLVM/project bdafc07 — clang/include/clang/Options Options.td, clang/lib/Driver/ToolChains Clang.cpp

address comments
DeltaFile
+3-3clang/include/clang/Options/Options.td
+1-1clang/lib/Driver/ToolChains/Clang.cpp
+4-42 files

LLVM/project 77dedee — clang/lib/AST ASTContext.cpp, clang/lib/Lex TextEncoding.cpp

Convert the key before cache lookup to prevent encoding differences
DeltaFile
+9-9clang/lib/AST/ASTContext.cpp
+2-0clang/lib/Lex/TextEncoding.cpp
+11-92 files

LLVM/project b2358e3 — clang/lib/AST ScanfFormatString.cpp FormatString.cpp, clang/lib/Sema SemaStmtAsm.cpp

address comments
DeltaFile
+16-26clang/lib/AST/PrintfFormatString.cpp
+11-11clang/lib/AST/FormatString.cpp
+4-3clang/lib/AST/ScanfFormatString.cpp
+0-1clang/lib/Sema/SemaStmtAsm.cpp
+31-414 files

LLVM/project 1faa302 — clang/lib/AST FormatStringParsing.h FormatString.cpp, clang/lib/Sema SemaChecking.cpp

Add format string handling
DeltaFile
+74-60clang/lib/AST/PrintfFormatString.cpp
+29-32clang/lib/AST/ScanfFormatString.cpp
+31-25clang/lib/AST/FormatString.cpp
+19-8clang/lib/Sema/SemaChecking.cpp
+18-0clang/lib/AST/FormatStringParsing.h
+10-0llvm/include/llvm/Support/TextEncoding.h
+181-1251 files not shown
+182-1257 files

LLVM/project 6d8380e — clang/include/clang/Basic TargetInfo.h, clang/lib/AST ASTContext.cpp

convert to exec-charset inside getPredefinedStringLiteralFromCache, test __builtin_FILE()
DeltaFile
+10-0clang/lib/AST/ASTContext.cpp
+3-1clang/test/CodeGen/systemz-charset.cpp
+3-0clang/lib/Basic/TargetInfo.cpp
+2-0clang/include/clang/Basic/TargetInfo.h
+18-14 files

LLVM/project 9f5a866 — clang/lib/AST FormatStringParsing.h ScanfFormatString.cpp

remove changes in objc and apple's logging system
DeltaFile
+23-30clang/lib/AST/PrintfFormatString.cpp
+31-21clang/lib/AST/FormatString.cpp
+9-9clang/lib/AST/ScanfFormatString.cpp
+5-12clang/lib/AST/FormatStringParsing.h
+68-724 files

LLVM/project b154396 — clang/include/clang/AST FormatString.h, clang/lib/AST ScanfFormatString.cpp FormatStringParsing.h

Propagate TextEncodingConverter through format string parsing functions
DeltaFile
+23-19clang/lib/Sema/SemaChecking.cpp
+13-7clang/lib/AST/PrintfFormatString.cpp
+15-2clang/lib/AST/FormatStringParsing.h
+17-0llvm/lib/Support/TextEncoding.cpp
+7-6clang/include/clang/AST/FormatString.h
+7-4clang/lib/AST/ScanfFormatString.cpp
+82-385 files not shown
+96-4611 files

LLVM/project f8b6076 — clang/lib/AST ScanfFormatString.cpp PrintfFormatString.cpp, llvm/include/llvm/Support TextEncoding.h

address comments, remove createFormatStrConverter
DeltaFile
+2-13clang/lib/AST/FormatStringParsing.h
+7-5clang/lib/AST/PrintfFormatString.cpp
+3-3clang/lib/AST/ScanfFormatString.cpp
+1-1llvm/lib/Support/TextEncoding.cpp
+1-1llvm/include/llvm/Support/TextEncoding.h
+14-235 files

LLVM/project c3ff0ec — llvm/test/Transforms/SLPVectorizer/AArch64 sibling-loops-unknown-trip-counts.ll

[SLP][NFC]Add a test for missing vectorization of sibling loops, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/245619
DeltaFile
+1,185-0llvm/test/Transforms/SLPVectorizer/AArch64/sibling-loops-unknown-trip-counts.ll
+1,185-01 files

LLVM/project a2d52a5 — clang/lib/CodeGen CGOpenMPRuntime.cpp CGStmtOpenMP.cpp, clang/test/OpenMP flush_memory_order_codegen.cpp

[OpenMP] Honour memory-order clauses on the flush directive (#241295)

At present the acquire, release and acq_rel clauses on 'flush' are
accepted but have no effect. Flushes are emitted as `__kmpc_flush`
runtime calls, which implement a seq_cst fence.

AMD have had a downstream patch for a while (by Carlo Bertolli) which
adds per-ordering `__kmpc_flush_*` entry points to the device runtime.
This patch takes a slightly different approach: for the host, a seq_cst
flush still calls `__kmpc_flush`, and a flush with any other ordering
calls the `__kmpc_flush_explicit` entry point from #133325, so it needs
a runtime that has that. For the GPU, it emits a fence directly.

This has mild benefits: OpenMPOpt already handles fences when it
converts kernels to SPMD mode, but has no knowledge of the new
`__kmpc_flush` calls (either _explicit or Carlo's per-ordering flush
calls). Scope names differ per-GPU: they are determined using the
mechanism introduced by #213810 ("[LLVM] Unify atomic scope handling
between LLVM and Clang").

    [19 lines not shown]
DeltaFile
+89-0llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+71-0clang/test/OpenMP/flush_memory_order_codegen.cpp
+34-12clang/lib/CodeGen/CGStmtOpenMP.cpp
+33-8llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+41-0openmp/runtime/test/flush/omp_flush_memory_order.c
+33-5clang/lib/CodeGen/CGOpenMPRuntime.cpp
+301-256 files not shown
+340-3412 files

LLVM/project 4b11187 — llvm/lib/Transforms/Vectorize VPlanTransforms.h LoopVectorize.cpp, llvm/test/Transforms/LoopVectorize/VPlan vplan-print-before-after-all.ll interleave-group-scalarization-decisions.ll

[VPlan] Create interleave groups before scalarization decisions. (#245585)

Move createInterleaveGroups to right after the memory widening
decisions,so makeScalarizationDecisions sees the group's single 
address use. Mostly no change yet, as the legacy cost model still
marks those addresses uniform.

Needed by https://github.com/llvm/llvm-project/pull/244728.

Follow-up to earlier
movehttps://github.com/llvm/llvm-project/pull/243789
DeltaFile
+93-0llvm/test/Transforms/LoopVectorize/VPlan/interleave-group-scalarization-decisions.ll
+6-7llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+2-2llvm/lib/Transforms/Vectorize/VPlanTransforms.h
+1-1llvm/test/Transforms/LoopVectorize/VPlan/vplan-print-before-after-all.ll
+102-104 files

LLVM/project 0c577ac — llvm/lib/Target/SystemZ SystemZInstrVector.td, llvm/test/CodeGen/SystemZ vec-strict-conv-04.ll vec-conv-04.ll

[SystemZ] Select WCEFB/WCELFB/WCFEB/WCLFEB for vector-element conversions (#245369)

On z15, use the scalar-in-vector convert instructions when one side of
an i32<->f32 conversion already lives in a vector register:

* (s|u)itofp of an extracted <4 x i32> element -> WCEFB/WCELFB, using
VREPF first for elements 1-3.
* fptosi/fptoui whose i32 result goes into element 0 of a vector
(scalar_to_vector, insert into undef, or splat) -> WCFEB/WCLFEB.

This avoids the GPR round trip (vlgvf + cefbr, cfebr + vlvgf). GPR<->FPR
conversions and variable-index extracts are unchanged.

Also fix the dest/source operand types of VCFEB/VCLFEB/WCFEB/WCLFEB
(which were reversed) and VCEFB/VCELFB (v128g -> v128f).

Add vec-conv-04.ll and vec-strict-conv-04.ll, including negative and z14
checks.

Assisted by: IBM Bob
DeltaFile
+351-0llvm/test/CodeGen/SystemZ/vec-conv-04.ll
+348-0llvm/test/CodeGen/SystemZ/vec-strict-conv-04.ll
+38-6llvm/lib/Target/SystemZ/SystemZInstrVector.td
+737-63 files

LLVM/project f8e5c37 — llvm/lib/Target/SystemZ SystemZScheduleZEC12.td SystemZScheduleZ196.td

[SystemZ] Add missing CC def to TRANSLATE EXTENDED (TRE) (#245460)

TRE sets the condition code (0: operand processed, 1: test character
found, 3: CPU-determined amount processed), but its definition did not
list CC as an implicit def.

Adding the def raises TRE's write count from two to three, so update the
TRE scheduling entries for z196 through z17 to match (as for CU41/CU42).

Assisted by: IBM Bob
DeltaFile
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZEC12.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ196.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ17.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ16.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ15.td
+1-1llvm/lib/Target/SystemZ/SystemZScheduleZ14.td
+6-62 files not shown
+8-88 files

LLVM/project aed7bc6 — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[Bazel] Fixes e8ab13d (#245608)

This fixes e8ab13d945289f8bfcf1031f0d0abbb002dca5af (#245448).

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

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+2-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+2-01 files

LLVM/project 34a7516 — llvm/lib/Target/SystemZ SystemZISelLowering.cpp SystemZInstrVector.td, llvm/test/CodeGen/SystemZ vec-avg.ll

[SystemZ] Support ISD::AVGCEILS and ISD::AVGCEILU (#244786)

Mark ISD::AVGCEILS and ISD::AVGCEILU as legal for vector types on z13+
and for i128 on z17 (VectorEnhancements3). Match them to VAVG* and
VAVGL* instructions while preserving mappings for existing s390
intrinsics.

Assisted by: IBM Bob
DeltaFile
+207-0llvm/test/CodeGen/SystemZ/vec-avg.ll
+10-10llvm/lib/Target/SystemZ/SystemZInstrVector.td
+18-0llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+235-103 files

FreeBSD/src f19206c — sys/dev/acpica acpi_spmc.c

acpi_spmc: Make Intel device-specific state optional

The Intel Low Power S0 Idle _DSM specification marks the minimum
device-specific state of a constraint package as optional, and its own
example returns {0xFF, 0}.  Requiring three elements rejected such
constraints, with one boot message each.

Reviewed by:    olce
Approved by:    olce
Fixes:          508efe35e577 ("acpi_spmc: Check Intel constraint packages")
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/134
DeltaFile
+4-2sys/dev/acpica/acpi_spmc.c
+4-21 files

pkgng/pkgng 56120ea — . NEWS, libpkg fetch_libfetch.c

fetch: look the server list up once

When the SRV records or the mirror list of a repository cannot be resolved,
pkg falls back on the host of its URL, but the list was only cached on
success: the failing lookup, which is slow on a network without DNS, was
done again for every file fetched from the repository, and its error was
reported as many times.

Remember that the list could not be resolved for the repository, so that a
run looks it up once and reports it once.

Reported in #2786.
DeltaFile
+45-2tests/frontend/http.sh
+18-12libpkg/fetch_libfetch.c
+6-0libpkg/private/pkg.h
+3-0NEWS
+72-144 files