[mlir][tosa] Support CONV2D and CONV3D with EXT-DYNAMIC in tosa-to-linalg-named (#243377)
Support non-constant input tensor zero point (`input_zp`) and weight
zero point (`weight_zp`) operands for CONV2D and CONV3D in the
`tosa-to-linalg-named` pass. EXT-DYNAMIC allows these operands to be
non-constant.
For each non-constant zero point:
- Use `tensor.extract` to get the scalar value from the zero point
tensor
- If the zero point's type is `i8`, sign-extend the scalar to `i32` for
the quantized convolution
- Otherwise, for non-`i8` types, emit `cf.assert` to check that the
value is zero
- If the quantized convolution is used, pass an `i32` constant zero for
that operand
Use the input zero point scalar as the padding value.
[100 lines not shown]
[JumpTableToSwitch] Use ConstGlobalIterator to read jump table entries
Replace JTTS's own jump table parsing with the `ConstGlobalIterator` helper,
which is also used by instcombine's `foldCmpLoadFromIndexedGlobal`.
As a result JTTS now also handles GEPs without nusw/nuw flags, by masking the
index the same way instcombine does.
Note that the helper requires the indices to be in canonical index type, so
JTTS only works with canonical index types now. This is not a problem in
practice as JTTS only runs after instcombine.
opnsense/update: bring in latest changes
fetch: rewritten to avoid script races
revert: rewritten for -x and to always use pkg-add
update: rewritten kernel install, mirror mode behaviour, new -Y and mod -a
[ARM][ConstantIslands] Fix CloserWater heuristic to resolve convergence failure in large functions. (#245139)
Fix two bugs in the `CloserWater` heuristic in `findAvailableWater` that
cause
the ARM constant island pass to fail to converge for large functions
with many
constant pool entries, aborting with:
LLVM ERROR: Constant Island pass failed to converge!
This was observed during LTO linking of large translation units where
PGO-driven
inlining produces functions with thousands of basic blocks and over a
hundred
constant pool references. The constant island pass exceeds its
30-iteration
convergence limit due to a cascade effect: each CPE placement shifts
subsequent
block offsets, pushing one more entry out of range per iteration.
[37 lines not shown]
[CIR][NFC] Generate isBitIntType from an ODS constraint
Add CIR_AnyBitIntType and define CIR_IsNotBitIntPred as its negation, so the
positive and negative _BitInt checks share one predicate. ODS now generates
cir::isBitIntType, replacing the hand-written helper from #245456. Restore the
dyn_cast<IntType> sites that need the IntType itself, since the generated
function does not accept a null type.
Assisted-by: Claude Code (claude-sonnet-5-5).
Pull up following revision(s) (requested by hannken in ticket #1425):
sys/kern/vfs_wapbl.c: revision 1.118 (via patch)
The evaluation of resource shortage in wapbl_register_deallocation()
is incomplete as only "wl_dealloccnt" is checked. Replace this check with
the doflush check from wapbl_begin() testing for 75% instead 50% to
make sure the next wapbl_begin() will always flush.
It is still a mitigation, for a fix the file system must provide an
upper bound for every transaction to wapbl_begin().
PR kern/47146 user-triggerable crash in wapbl_register_deallocation (confi)
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
[Mips] Use the constrained compare mask directly on R6 (#246087)
On R6, a constrained FP compare is lowered to (and Mask, 1), where Mask
is the 0 or -1 result of cmp.cond.fmt. Selects, branches and sign
extensions can use Mask without the 'and' when ComputeNumSignBits shows
that it is 0 or -1, as they already do for non-strict compares. For
constrained compares this was not known, since STRICT_FPCmpR6 and
STRICT_FPCmpsR6 were not handled in ComputeNumSignBitsForTargetNode and
the low word of an f64 mask came from an EXTRACT_SUBREG. So they got an
extra 'andi', and the sign extensions a 'negu' as well.
Handle the strict compare nodes in ComputeNumSignBitsForTargetNode, and
take the low word of an f64 mask with ExtractElementF64, which it can
look through. The code is now the same as for non-strict compares.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Pull up following revision(s) (requested by hannken in ticket #586):
sys/kern/vfs_wapbl.c: revision 1.118
The evaluation of resource shortage in wapbl_register_deallocation()
is incomplete as only "wl_dealloccnt" is checked. Replace this check with
the doflush check from wapbl_begin() testing for 75% instead 50% to
make sure the next wapbl_begin() will always flush.
It is still a mitigation, for a fix the file system must provide an
upper bound for every transaction to wapbl_begin().
PR kern/47146 user-triggerable crash in wapbl_register_deallocation (confi)
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #1424):
sys/ufs/ffs/ffs_snapshot.c: revision 1.158
Add UFS_WAPBL_UPDATE() after block allocations to group the
allocation and the inode update into the same transaction.
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #585):
sys/ufs/ffs/ffs_snapshot.c: revision 1.158
Add UFS_WAPBL_UPDATE() after block allocations to group the
allocation and the inode update into the same transaction.
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
devel/truc: Deprecate and set expiration date
The project is abandoned upstream, no longer developed.
Set expiration date to 2027-02-28, 3 months from now.
PR: 300510
MFH: 2026Q4
(cherry picked from commit c6743c0873f6f7233d19b33f6aef1fdcaf604b6c)
devel/truc: Deprecate and set expiration date
The project is abandoned upstream, no longer developed.
Set expiration date to 2027-02-28, 3 months from now.
PR: 300510
MFH: 2026Q4