[Mips] Do not use neg.fmt for fneg in legacy abs mode (#245226)
Unless in abs2008 mode, neg.s and neg.d are arithmetic: they raise
invalid for a signaling NaN and do not flip the sign of a NaN. fneg
must only flip the sign bit and never raise an exception, but it was
always selected to neg.fmt.
Custom lower fneg like fabs: use neg.fmt only in abs2008 mode or with
the nnan flag, otherwise flip the sign bit in a GPR. This matches GCC,
which only uses neg.fmt with -mabs=2008 or when NaNs are not honored.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
py-grpcio*: update to 1.85.3
#43961 Fixed a deadlock that could freeze the entire Python process
when closing a channel (synchronous API) while gRPC's background
threads were running Python callbacks (for example, call credentials
plugins). (Backport of #42247; credits: @PeterZhizhin)
[Driver][test] Use -fuse-ld=ld in fuchsia.c -rtlib=none test (#245158)
-fuse-ld=lld checks that ld.lld is executable and fails on builders
configured without lld, use -fuse-ld=ld like the rest of fuchsia.c.
[AMDGPU][GlobalISel] Fix ds_append/ds_consume addressing
This matches the SelectionDAG fix. For LDS, ds_append and ds_consume
address memory only through the 16 bit instruction offset and ignore
M0, but the selector copied the pointer base into M0. Select a constant,
dword aligned LDS address into the offset field and diagnose any other
LDS address as unsupported.
For GDS, the offset field must be zero and the address comes from
M0.base, so build M0 as `(addr << 16) | gds_size`. Using GDS on a
subtarget without GDS is now diagnosed.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
ds_append v0 offset:16
```
[SelectionDAG] Look through freeze in CombineExtLoad
Folding an extend of an illegally-wide vector into extending loads only
matched when the extend operand was the load itself. A boolean select is
combined to an OR of a frozen operand and the freeze is pushed down to the
load, so the fold was skipped: the load stayed a plain vector load and each
half of the widened result needed an extract and a register-form extend.
Look through a single-use freeze and re-apply it to the split result.
Freeze is element-wise and extends are deterministic, so freezing the split
loads is equivalent to freezing the extended value.
For the loop in #245064 this replaces four 512-bit loads with their extracts
and register-form vpmovzxwd by memory-form vpmovzxwd, going from 57 to 49
instructions per 128 elements.
Adds llvm/test/CodeGen/X86/vector-extload-freeze.ll and updates the
existing avx512-ext.ll checks.
Fixes #245064
[MachineOutliner] Track exposed uses by register units (#243597)
The MachineOutliner does not account for sub-registers when adding
implicit uses to the call to an outlined function. This produces
liveness information that the machine verifier rejects. Track the
defined register units while walking the outlined range, so that
implicit uses are added more accurately.
devel/ruby-tins: update to 1.63.0
1.63.0 (2026-11-18)
Fixes
* Removed redundant test_files.concat Dir[...] line from the Rakefile to
prevent duplicate test file entries in the gemspec, as GemHadar already
populates this list via test_dir.
Build & CI
* Bumped the gem_hadar development dependency constraint to >= **2.24.1**.
* Updated rubygems_version in the gemspec to **4.0.24**.
Documentation
* Replaced the legacy YARD cheatsheet in .contexts/yard.md with new
instructions for AI-generated documentation.
[6 lines not shown]
[AMDGPU] Fix ds_append/ds_consume addressing in SelectionDAG
For LDS, ds_append and ds_consume address memory only through the 16 bit
instruction offset. M0 is not used, but isel put the pointer (or its
base) into M0, so the counter was read at the wrong address. Select a
constant, dword aligned LDS address into the offset field and diagnose
any other LDS address as unsupported.
For GDS, the ISA requires the offset field to be zero and takes the
address from M0.base, so pack the whole address into M0 as
`(addr << 16) | gds_size`. Using GDS on a subtarget without GDS is now
diagnosed instead of silently encoding a GDS bit.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
[4 lines not shown]
[SPIR-V] Rebuild pointer constant arms of an aggregate PHI or select (#236370)
A constant arm's pointer members carry the pointee types deduced for
them anywhere in the module (constant expressions are shared between
functions), so the constant can be a different SPIR-V type than the PHI
or select and its other arms: `selectSelect` asserts. Rebuild such an
arm with `insertvalue`, which casts each member to the result's member
type.
Assisted-by: Claude Opus 5.5
---------
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[SPIR-V] Expose every aggregate extractvalue as a value-id (#236368)
An aggregate `spv_extractv` was exposed as an `i32` value-id only when
it fed an `insertvalue`. Afterwards it was retyped when it fed a return
or a call whose signature `SPIRVPrepareFunctions` had rewritten. An
aggregate PHI, select or freeze is always a value-id, so an extract
feeding one of those had a mismatched type. Expose every aggregate
extract as a value-id, whatever its users. Also assign its composite
type, which a PHI, select or freeze does not pass down to it. This makes
the return and callsite retyping unneeded, so it is removed.
An aggregate value-id reaching inline asm crashed type propagation in
`SPIRVPreLegalizer` (`getScalarOrVectorBitWidth` on the struct). Any
aggregate value-id can hit this, not only an extracted one, so
`propagateSPIRVType` no longer propagates an aggregate type through an
extend.
Assisted-by: Claude Opus 5.5
[2 lines not shown]
[SPIR-V] Serialize vreg types in MIR (#243863)
Drop the reservedRegsFrozen() check in finalizeLowering because
MIRParser freezes reserved regs before any pass runs
Another step toward SPIR-V MIR round trip
[AMDGPU] Stop sinking addresses into ds_append/ds_consume
ds_append and ds_consume have no address register operand. For LDS the
address comes only from the 16 bit offset field, and M0 is not used. The
register plus immediate DS addressing mode reported through
getAddrModeArguments does not apply, so CodeGenPrepare should not sink
address computations into these intrinsics.
```llvm
entry:
%in.gep = getelementptr i32, ptr addrspace(3) %in, i32 7
br i1 %cond, label %endif, label %if
if:
%val = call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) %in.gep, i1 false)
; before: CodeGenPrepare sinks the address into %if
%sunkaddr = getelementptr i8, ptr addrspace(3) %in, i32 28
%val = call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) %sunkaddr, i1 false)
; after: the call keeps using %in.gep
[5 lines not shown]