[AMDGPU] Assume nonzero EXEC at kernel entry for VA_VDST
Waves are launched with at least one active lane, so in a kernel EXEC
can only become zero at an EXEC write that may produce zero. Until such
a write, VALUs after an always-issued VALU are issued as well and may
credit its accesses as VA_VDST successors.
Track this per bracket. It starts set in entry functions, is cleared by
EXEC writes that may produce zero, and merges by intersection. Blocks of
an entry function propagate their state even with no pending events, so
a cleared fact reaches every merge.
Assisted-by: Claude
[AMDGPU] Ignore EXEC writes that cannot zero EXEC for VA_VDST
Only an EXEC write that may produce zero can cause later VALUs to be
skipped. Moves of a nonzero immediate, ORs and WQMs of EXEC, and
S_OR_SAVEEXEC keep a nonzero EXEC nonzero, so pending VA_VDST accesses
keep their credit across them.
Assisted-by: Claude
[AMDGPU] Stop crediting skippable VALUs as VA_VDST successors
When EXEC is zero most VALUs are skipped and never increment VA_VDST,
but lane accesses, V_NOP, VALUs that write an SGPR, VCC or NULL, and
WMMA/SWMMAC are still issued. A skipped VALU therefore must not count as
a successor of a pending access that was issued, which happens across
EXEC writes and after WMMA/SWMMAC and lane accesses.
Mark pending accesses at EXEC writes, and the accesses of WMMA/SWMMAC
and lane accesses, which access VGPRs regardless of EXEC. The other
always-issued VALUs access VGPRs per lane, so they are assumed to access
none when EXEC is zero; they are counted but do not mark their operands.
A marked access keeps the count it had already earned and is otherwise
credited only by later always-issued VALUs and ordered XDL writes. A
later skippable access to the same register does not clear the mark.
Partial waits keep unsatisfied marked accesses pending, and merges take
the smaller count.
Assisted-by: Claude
[2 lines not shown]
py-pdf: update to 7.2.0.
Security (SEC)
Limit memory for embedded files dictionary API (#4533) by @stefan6419846
Limit size of indexed color space lookup tables (#4532) by @stefan6419846
Avoid cmap data splitting before size validation (#4531) by @stefan6419846
Deprecations (DEP)
Deprecate encryption_key of ContentStream.write_to_stream (#4508) by @MartinThoma
Deprecate parse_filename_page_ranges (#4472) by @MartinThoma
Performance Improvements (PI)
Check inline image names against a set when listing page images (#4467) by @prawalpokharel
Count duplicate form field names and radio states without rescanning (#4478) by @kholdrex
Avoid copying the visited set for each nested outline item (#4455) by @metsw24-max
Fix cache evaluation for XMP data retrieval (#4380) by @1x98
[16 lines not shown]
[analyzer][NFC] Build the AST matchers of GCDAntipattern and OSObjectCStyleCast once (#246981)
- `GCDAntipatternChecker` and `OSObjectCStyleCastChecker` rebuilt their
large, heap-allocating matcher trees in `checkASTCodeBody` for every
function body.
- The matchers don't depend on the body, so build them once in the
checker constructors and keep them as type-erased checker fields.
- Fields rather than function-local statics, so no state is shared
between analysis runs in one process (e.g. unit tests).
- The checkers are in `optin.performance` and `optin.osx`, so only users
enabling them benefit; the win scales with the number of function
bodies.
Analysis-time impact (instructions retired in millions,
`unroll-loops=true`; inputs are the reproducers from
llvm/llvm-project#105512; ON = default graph trimming, OFF =
`graph-trim-interval=0`):
file mode before after change
[57 lines not shown]
clnt_rdma.c: Copy data into the pages before dma mapping them
Without this patch, the code would copy data into pages for
a large RPC request being done over RDMA after doing the
dma mapping of the pages. (Dma mapping of the pages includes
the dma sync for the device.)
This patch moves the data copying up to before the call
to xprt_rdma_create_chunk(), which does the dma mapping,
including the dma sync for the device.
Reported by: llm-postcr
MFC after: 1 month
Fixes: 80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")
[clang][PowerPC] Take a soft-float long double va_arg from four GPRs on 32-bit SVR4
With soft float, an IBM long double is passed in four consecutive GPRs,
or on the stack if fewer than four are left, word-aligned. va_arg took
it from GPRs whenever any was left, counted one GPR as used, and aligned
its overflow slot to 16, so the long double and everything after it came
out wrong even between clang-built caller and callee.
Assisted-by: Claude Code
[clang][PowerPC] Take two FPRs for a long double va_arg on 32-bit SVR4
An IBM double-double long double is passed in two consecutive FPRs, which
need not start at an even register, or in a doubleword-aligned slot of the
overflow area. va_arg counted it as one FPR and aligned its overflow slot to
16, so a variadic function read the wrong value for every long double after
the first: summing 1.0L, 2.0L and 3.0L gave 5.
Use two FPRs, send the value to the overflow area once seven FPRs are used,
and align its overflow slot to 8. GCC's va_arg does the same, and both
compilers already pass long double arguments this way.
Assisted-by: Claude Code
[AST][NFC] Use struct as string table for AttrDoc (#246986)
Using a StringRef array has two problems: first, the length evaluation
uses a strlen-like loop from std::string_view at compile time (could be
fixed with StringLiteral); and second, it causes dynamic relocations.
Store all strings in one single global (445 kiB) and store a second
array with the offsets indexed by the attribute kind. This avoids 7.5kiB
of .data.rel.ro and improves compile times of AttrDocTable.cpp.
For compatibility with older MSVC, struct members cannot use an
initializer directly at the member declaration in constexpr contexts but
need to use a separate initializer for the entire struct.
py-pikepdf: update to 10.18.3.
{func}pikepdf.pdfa.check now predicts the right stream filters with
qpdf versions newer than 12.4.2. Those versions keep the compressed data of a
stream whose /Filter is the one-element array [/FlateDecode] instead of
recompressing it. qpdf 12.4.2 recompressed such streams, which removed any
predictor and could make scanned images larger. {issue}qpdf/qpdf#1785
[BPF] Lower sdiv/smod to libcalls with --bpf-allows-libcalls (#245580)
### Summary
The BPF backend rejects signed division and remainder on targets without
native `sdiv/smod` instructions so any code using these operations fails
to compile.
This restriction exists because the kernel rarely has a use case for
signed division/remainder. However, we're using BPF to implement
userspace VMs and could perform software expansion of `sdiv/smod` when
the corresponding native opcodes are not available.
**Rust code snippet**
```
#[unsafe(no_mangle)]
pub fn entrypoint(input: *mut u8) -> u64 {
[57 lines not shown]
py-zensical: update to 0.1.4.
This version fixes Git revision dates and edit links on Windows,
corrects escaped ampersands in llms.txt, and prevents long whitespace
runs from stalling link validation. It also prevents oversized
icons in Firefox Reader View, addresses a stack overflow when
parsing nested blob: URLs, and updates Rust dependencies and Docker
security packages. Additionally, the user interface is updated to
v0.0.44, improving search breadcrumb contrast and adding 35 new
icons.
py-urwid: update to 5.2.1.
New features
Add GridFlow.options("pack"): a cell as wide as its widget
packs to, at most the width of the grid, so a row of labels or
check boxes needs no width measured by hand. A 'pack' cell
holding a FLOW-only widget limits the grid to FLOW by @penguinolog
in https://github.com/urwid/urwid/pull/1739
flush() of ListWalkerHandler and NotificationsHandler shows
the queued records at once when called on the loop thread, so
a callback that stops the loop or reads the widget sees the
records logged just before it; on any other thread it does
nothing by @penguinolog in https://github.com/urwid/urwid/pull/1731
Add launcher_attr_map, launcher_focus_map and launcher_disabled_map
to DropDown and ActionMenu to style the launcher alone by
@penguinolog in https://github.com/urwid/urwid/pull/1733
[61 lines not shown]
[analyzer] Don't charge the step limit for ending lifetimes
With cfg-lifetime, every LifetimeEnds element costs a step, and so does
entering a block that only ends lifetimes.
- Most of the analysis time is spent in entry points that exhaust
max-nodes, so these steps replaced real exploration.
- This lost paths and inlined calls compared to cfg-lifetime=false.
No change with cfg-lifetime=false.
Assisted-By: Claude
[analyzer] Remove dead bindings after lifetime ends at the block start
Dead bindings are always removed at the beginning of a block.
- With cfg-lifetime, a block may begin with LifetimeEnds elements, so its
first statement was no longer considered to be at the beginning.
- The states then kept the dead bindings for longer, so paths merged
later than without lifetimes, spending more of the step budget.
No change with cfg-lifetime=false.
Assisted-By: Claude
[analyzer] Don't let lifetime-only blocks affect the exploration order
The unexplored-first priority queues rank work items by how many times
their block was entered.
- A block that only ends lifetimes had its own visit count, so paths
reaching it got ranked differently than with cfg-lifetime=false.
- With a limited budget this changed which paths got explored, and which
callees got excluded from inlining by the block-count limit.
The unexplored_first stack only distinguishes the first visit of a
block. A lifetime-only block has a single successor and is passed
straight through on its first visit, so it can't change that order.
No change with cfg-lifetime=false.
Assisted-By: Claude
[analyzer] Don't count lifetime-only blocks in the inlining size heuristics
With cfg-lifetime, the CFG builder creates a block just for ending
lifetimes on scope exits that would otherwise need no block, e.g. where
the branches of an 'if' join at the end of a scope.
- These blocks pushed functions over the small/large/huge thresholds,
so enabling cfg-lifetime changed which functions got inlined.
- Through max-times-inline-large, this also starved inlining in later
entry points of the TU.
No change with cfg-lifetime=false.
Assisted-By: Claude
libdatachannel: update to 0.25.0
* Fix use-after-free when WebSocket sends while closing
* Serialize PeerConnection::initSctpTransport()
* Fix exception due to race in setRemoteDescription when the peer
connection
* Fix deadlock in TLS transport with Mbed TLS on read timeout
* Fix build with libcxx 20.1.8
* Bump `OpenSSL API` version
* Add support for PEM CA certificates
* Add VP8 packetizer and depacketizer
* Google Video Layers Allocation extension support
* Expose PacingHandler in the C API
* Improve PacingHandler
* Bump bytes from 1.5.0 to 1.11.1 in /examples/signaling-server-rust
* Fix MbedTLS link order in FindMbedTLS.cmake
* Implement custom WebSocket HTTP request headers
* RFC 8851 attributes for simulcast in the SDP
* Fix compiling on gcc13 when -pedantic is used
[38 lines not shown]