[lld][test] Require asserts for LTO verifier pass-manager tests (#242933)
Fixes 58561153d5fc (#242663).
#242663 makes ld.lld, ld64.lld and wasm-ld always set disableVerify in
NDEBUG builds, so --lto-debug-pass-manager no longer prints "Running
pass: VerifierPass" in builds without assertions. The tests below check
for the verifier pass in the default (no -disable-verify) mode, so they
fail when lld is built without LLVM assertions:
lld/test/ELF/lto/verify-invalid.ll
lld/test/MachO/verify.ll
lld/test/wasm/lto/verify-invalid.ll
Mark them REQUIRES: asserts.
Assisted-by: Gemini
[LV] Don't calculate cost/register pressure for vp.merge that can be folded. (#208621)
In EVL vectorization, LV generates a `vp.merge` to clean up poison
values in the tail (inactive) lanes, which often happens during outer
loop vectorization.
However, in RISC-V peephole optimizations, most of these `vp.merge`
operations can be folded by changing the tail policy from agnostic
(`ta`) to undisturbed (`tu`). This patch wraps vp.merge(RecipeA) into an
expression recipe, making it easier for LV to skip cost and register
usage calculations for vp.merge that can be folded in the backend.
ait: update to 1.16
New:
- Added C-x h for mark-entire-buffer
- support bold and italics
Enhancements:
- Added the word 'Wrapped' when you have gotten to the end of a file
while doing an isearch.
- Added C-u support to go backwards with esc m
- Ignore whitespace between point and bracket for jumping brackets
and treat backet jumping as esc b or esc f if there is no bracket.
- msgline now fully supports UTF-8
- dynamic-expand now searches all opened buffers
- Added more files types/langs for syntax highlighting
Bugs:
- Fixed bug when end quote is next to an escaped quote and you
attempt to jump to the matching quote.
[11 lines not shown]
[NVPTX] Add known bits for clz.b64 and popc.b64 (#237793)
The target nodes from #236435 lost the known bits that the generic nodes
provided, so a rotate by a count keeps a mask it doesn't need, and a
count in another block no longer forms mul.wide. As suggested on
#236435, bound the count the same way SelectionDAG does for CTLZ and
CTPOP.
Assisted-by: Claude Code (Claude Opus 5.5)
[Hexagon] Exclude debug instructions from load/store widening size limit (#221649)
`HexagonLoadStoreWidening` uses `MachineBasicBlock::size()` as a compile-time guard, so debug instructions can push a block over the limit and disable otherwise valid load or store widening.
Use `sizeWithoutDebugLargerThan` so debug instructions and pseudo probes do not consume the limit. Add focused MIR coverage for both sides of the instruction-count threshold.
Fixes #221634
This issue was found by a non-AI automated testing tool. AI assisted with the analysis and development of the fix.
Sparc: Use LastSubtargetCache in getSubtargetImpl (#242852)
Adopt new common pattern for targets to lookup subtargets.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
poke: update to 5.0
* User interface updates
- Now hyperlink server can bind to a user-specified port for
listening to commands (-p, --hserver-port).
* Poke Language updates
- Floating-point arithmetic is now supported on uint<32>/uint<64>
types. uint<32> will be interpreted as a single-precision
floating-point number and uint<64> will be interpreted as a
double-precision floating-point number as defined per the IEEE
754 standard. The following expressions are now supported:
- Addition: a .+ b
- Subtraction: a .- b
- Multiplication: a .* b
- Division: a ./ b
- Ceil-devision: a ./^ b
- Exponentiation: a .** b
- Remainder: a .% b
[67 lines not shown]
[SLP] Fix crash in isCommutative for abs users of non-overflowing lanes
An or, xor or and lane converted to sub keeps its original opcode and has
no wrap flags, so querying nsw on it asserts. Such a lane does not clear
nsw of the vector sub either, so it is treated like a copyable lane: its
operands can be swapped only if abs is poison on INT_MIN.
Fixes #242907.
Pull-request: https://github.com/llvm/llvm-project/pull/242927
IR: Handle integers and pointers first in DataLayout::getTypeAllocSize
getTypeAllocSize is mostly called on integer and pointer types, but the
recursive array and struct cases made every call set up a large stack
frame. Move the other types to a separate function, so the common cases
don't need it. The pointer case also only looks up the pointer spec once.
callgrind instructions, opt -O3: sqlite3 -0.16%, consumer-typeset z08.bc
-0.13%, kimwitu++ k.bc -0.10%, SPASS cnf.bc -0.09%. CTMark
instructions:u: O3 -0.06%, ThinLTO -0.08%.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
mps(4): add support for hostboot
If the mps/mpr(4) device has corrupted or missing firmware then
it will fail to attach.
Add an interface to use firmware(9) to load the firmware at boot.
Loosely based on https://github.com/marcan/lsirec/
Assisted-by: Claude Code (Opus 5)
Reviewed by: imp
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D59854
IR: Make Type::getScalarSizeInBits inline for integers
getScalarSizeInBits is called very often from ValueTracking and
InstCombine, almost always on integer types. Return the integer width
directly instead of calling getPrimitiveSizeInBits out of line.
callgrind instructions, opt -O3: sqlite3 -0.18%, consumer-typeset z08.bc
-0.11%, SPASS cnf.bc -0.10%. CTMark instructions:u: O3 -0.06%,
ThinLTO -0.06%.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
postal: update to 0.76
(0.76)
* Updated control file to include homepage and git repository.
* #define PATH_MAX if it's not already defined, for HURD.
(0.75)
* Fix some compiler warnings.
* Stop autoconf controlling stripping.
(0.74)
* Add -b option to bind to an address to bhm
* Add changes from NMU and use Debhelper compat level 9.
* Fix buffer underrun.
* Made it build with GCC-6.
(0.73)
* Do not #include <gcrypt.h> when unnecessary.
* Stop linking against libgcrypt.
[23 lines not shown]
[NVPTX] Expand lrint and llrint for f32 and f64 (#242764)
marks `(l)lrint` as Expand for f32/f64 on NVPTX.
they defaulted to LibCall, since NVPTX has no libm, they crashed.
now they use the generic FRINT + FP_TO_SINT expansion.
from #240078
nuageinit: Skip ssh keys if default user adduser fails
Commit d9fa6016011e ("nuageinit; Skip SSH keys and doas/sudo if adduser
fails") handled nil return from a failing adduser when adding secondary
users, but the same issue also existed in the default user handling.
Reported by: llm-postcr
Reviewed by: dtxdf
Supported by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61511
AMDGPU: Add named ArgRange classes for common builtin operands (#242552)
Name the ranges shared by many builtins after the operand they
constrain: byte/word select indexes, scale_sel, f8f6f4 matrix formats,
and wmma neg flags on variants that do not support negation. NFC.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
AMDGPU: Use ArgRange for prefetch cache policy bounds (#242551)
Only the reserved th value check remains in Sema.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[libclc][spirv] Add double support to Vulkan vstore_half/vstorea_half (#242829)
Implement `double` overloads for `vstore_half` and `vstorea_half` under
`cl_khr_fp64`. Round each element with the Vulkan boundary checks, then
forward it as `float` to the existing `vstore_half_N` and
`vstorea_half_N` helpers.
Prerequisite for google/clspv#1752; end-to-end tests will be added there
since `libclc/test` currently targets only AMDGPU.
I used AI assistance to prepare and review this patch.
I reviewed the entire change and take full responsibility for this PR.
Assisted-by: Antigravity Gemini 4 Hydrogen Extra reasoning
Assisted-by: Claude Code Opus 5.5 Max reasoning
toxcore: update to 0.2.25
- Ignore group sync responses we didn't request.
- Only sync group state once per roles checksum.
- Remove a group if loading its saved state fails.
- Limit how many peers and relay clients we keep.
- Only store group announces for up to 512 groups.
- Only queue up to 1024 priority packets per TCP connection.
- Don't free memory that's still stored elsewhere.
- Remove group peers added by requests that then fail.
- Check the handshake rate limit before adding a group peer.
- End call ringing for inactive calls.
- Try a friend's newest saved TCP relays first after 65536 of them.
- Compare wrapped counters and sequence numbers modulo their size.
- Only allow the 2 known conference types.
- Better handling of file or AV call cancelling.
- Don't read from evicted epoll TCP connections.
- Clean up minor group chat issue for early joins.
- Finish removals when array shrinking fails.
[2 lines not shown]
[KnownFPClass] improve deductions for fadd_self (#239257)
`fadd_self` is just multiplication by two. I removed the call to
`fadd_impl` and replaced it with the optimal conditions to rule out each
class, which improved deductions around NaN, infinity, and normal
classes. These refinements are valid for all rounding modes.
`fadd_impl` could not rule out NaN if both infinities were possible for
`fadd_self`: `fadd` produces NaN for `+inf + -inf` and `-inf + +inf`,
which are both impossible for `fadd_self`.
I avoided using `ldexp` so we do not have to pass in the `APFloat`
semantics into `fadd_self`.
[SLP] Keep original type for values with non-demoted vectorized users
A vectorized user, which stays in the original type, consumes the
extension of the demoted value with the wrong upper bits and may keep
poison-generating flags. Keep sext/zext nodes, demoted below their source
width, in the original type for such users, and check the flags of these
users for other demoted nodes.
Fixes #242864
Pull-request: https://github.com/llvm/llvm-project/pull/242915