[SystemZ] Use VBPERM to lower bitcast of <N x i1> to iN
On z14 and later (vector-enhancements facility 1), combine a bitcast
of v2i1, v4i1, v8i1 or v16i1 to the same-width integer (a "movemask")
into VECTOR BIT PERMUTE followed by a halfword extract. The lanes are
sign-extended to fill a 128-bit register, so a vector compare feeding
the bitcast needs no extra work. A constant index vector gathers the
top bit of each lane, with lane 0 landing in the most significant bit
of the result as before. Unused leading bytes use index 128, which
selects a zero bit.
This replaces about 34 instructions (vlgvb, risblg/rosbg, llhr) for
the v16i1 case with vbperm and vlgvh, plus a constant-pool load.
Reductions such as icmp eq/ne (bitcast (icmp ...)), 0/-1 are left to
combineSETCC so they keep using the condition code (vceqbs).
Assisted by: IBM Bob
[libc++] Optimize num_put a bit more (#245988)
`__identify_padding` checks what characters are at the start of the
formatted string, but we know what we put there, so we can keep track of
that instead and adjust the padding position based on that.
net-im/tuwunel: Update to 2.1.0
Adds LiveKit tokens for MatrixRTC calls and sticky events in both sync
APIs, and takes part in room policy servers by default. The database
pool is now sized against FreeBSD's per-process thread limit.
Restarting the service works again: daemon(8) keeps the child pidfile
locked until after the child exits, so the start following a stop found
it still held.
Changes:
https://github.com/matrix-construct/tuwunel/releases/tag/v2.1.0
Sponsored by: Netzkommune GmbH
[llvm-size] Refactor output formatting into SizePrinter classes (NFC)
Introduce a class-based SizePrinter abstraction (SummarySizePrinter,
BerkeleySizePrinter, SysVSizePrinter, DarwinSizePrinter) to encapsulate
format-specific state and output logic instead of branching on
OutputFormat across printObject and printObjectSectionSizes.
Move per-run state (HeaderPrinted and totals) from file-scope globals
into printer instances, preparing llvm-size for cleanly adding
additional output formats such as GNU (-G / --format=gnu) and JSON.
Assisted-by: Gemini
[SelectionDAG] Ask MachineFrameInfo whether an alloca can be static (#246290)
FunctionLoweringInfo makes an over-aligned static alloca a dynamic
allocation when the stack can't be realigned, but it asked
TargetFrameLowering, which doesn't see "no-realign-stack". So in such a
function the alloca stayed a fixed stack object, and MachineFrameInfo
silently clamped its alignment to the stack alignment. Ask
MachineFrameInfo instead, both whether the stack can be realigned and
what the function's stack alignment is ("alignstack" can raise it), as
its comment on StackRealignable describes. The tests with over-aligned
allocas in no-realign-stack functions now get an aligned dynamic
allocation. Noticed in #240693.
Assisted-by: Claude Opus 5.5 (Anthropic)
[AMDGPU] Check all AGPRs before skipping MFMA copy rewrite (#231714)
The MFMA copy rewrite checks only AGPR0 to decide whether a function
allocated any AGPRs. This can skip valid copy and MFMA rewrites when
only higher AGPRs have assigned live intervals.
In HIP kernels with SGPR spills, whole-wave copies can occupy low AGPRs
before final vector allocation. These physical uses are not virtual
intervals in the final allocation matrix, so the allocator can assign
higher AGPRs while AGPR0 has no assigned live interval.
The same case remains when the low AGPRs are reserved for whole-wave
values. Check the full AGPR register class before exiting.
AI assisted.
[CodeGen] Declare command line options of the machine pipeliner in TableGen (#246484)
WindowSchedulingFlag becomes an enum class with WS_On, the -window-sched
default, as its zero enumerator.
-pipeliner-opt-size reads its value, so -enable-pipeliner-opt-size=false
no longer enables the pipeliner at -Os. -pipeliner-dbg-res and
-pipeliner-show-mask, read only in LLVM_DEBUG, exist only in assertions
builds.
Renames, with the old spelling kept as an alias:
```
-enable-pipeliner-opt-size -> -pipeliner-opt-size
```
LLM-aided
[analyzer][NFC] Use a base region map in RemoveDeadBindingsWorker (#246433)
RemoveDeadBindingsWorker looked up the cluster of a region in the store
every time it was added to the worklist, and tracked visited clusters in
a separate set that it probed again when filtering the store.
Record every cluster and a visited flag in a map from the base region
when the clusters are generated, so adding a region to the worklist is a
single hash lookup. If every cluster is live, return the store
unchanged. The worker no longer uses ClusterAnalysis.
On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr) this
reduces the instructions of the static analyzer by 2.5-3.3%.
Assisted-by: Claude Opus 5.5
---------
Co-authored-by: Gabor Horvath <gaborh at apple.com>
[cmake] Escape compiler launchers in the NATIVE configure command (#246475)
Newer ccache versions support specifying options directly on the command
line. Make sure `-DCMAKE_<LANG>_COMPILER_LAUNCHER` is correctly
propagated to the NATIVE sub-build if the user passed a list.
Assisted-By: Claude
Co-authored-by: Claude Sonnet 5.5 <noreply at anthropic.com>
tcp/rack: reject unknown rate_sample_method values
The net.inet.tcp.rack.rate_sample_method sysctl is copied into every
new RACK connection but accepts any integer, while the
TCP_BBR_RACK_RTT_USE socket option only accepts USE_RTT_HIGH (0),
USE_RTT_LOW (1) and USE_RTT_AVG (2). With any other value,
tcp_rack_xmit_timer_commit() panics an INVARIANTS kernel on the first
RTT sample of each new connection ("Unknown rtt variant"). Without
INVARIANTS it returns early on every sample, so the connection never
updates its SRTT, RTTVAR or RTO.
Validate the sysctl with a handler that accepts only the three values
that the socket option accepts, and document the third value in the
sysctl description and in tcp_rack(4).
Reviewed by: tuexen
Co-authored-by: Claude Opus 5.5
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D62072