[mlir][arith] Fix crash in IntRangeOptimizations due to stale solver state (#186187)
When the IntRangeOptimizationsPass runs applyPatternsGreedily with
constant folding enabled, constant folding can restructure blocks — for
example by removing a block argument. The integer range solver, which
pre-computed range information for the original block arguments, is now
out of sync: subsequent range queries about the new (reused) argument
positions return stale information computed for the old arguments,
causing crashes.
Fix by passing enableConstantFolding(false) in GreedyRewriteConfig so
that the solver's state remains consistent with the IR throughout the
rewrite.
Fixes #122076
Assisted-by: Claude Code
Fix TNC sync_interface_ips empty IPs and repeated concurrent calls
This commit fixes an issue where sync_interface_ips could send empty IPs to the
TNC account-service (causing 400 errors) and where concurrent netlink events
would each independently hit the TNC API with the same payload.
When the HTTP call failed due to empty IPs, the cache was never populated, so
every subsequent netlink event retried the same failing call — creating an
infinite retry storm. Additionally, a single DHCP renewal would fire 3-5 netlink
events, each scheduling a call_later(5), all passing the cache check
simultaneously, and all hitting the TNC API concurrently with identical payloads.
An asyncio.Lock serializes concurrent sync_interface_ips calls so only the first
performs the HTTP sync while subsequent calls hit the cache and return early. An
empty IP guard skips the HTTP call when no IPs are available (static + dynamic
combined) but still caches the result to prevent retry storms.
17936 Update Intel microcode to 20260227
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Approved by: Robert Mustacchi <rm+illumos at fingolfin.org>
[mlir][affine] Fix crash in AffineParallelLowering for unsupported reductions (#186189)
When lowering affine.parallel with a reduction kind that has no identity
value (e.g. "assign"), getIdentityValueAttr() returns nullptr. The
caller getIdentityValue() then passed this null TypedAttr to
arith::ConstantOp::create(), triggering an LLVM_ERROR crash:
"Failed to infer result type(s): arith.constant"
Fixes #185250
Assisted-by: Claude Code
[mlir][arith] Fix crash when constant-folding truncf of inf to FiniteOnly float type (#186191)
When arith.truncf constant-folding converts a value such as infinity to
a type with fltNonfiniteBehavior::FiniteOnly (e.g. f4E2M1FN),
APFloat::convert hits an llvm_unreachable("semantics don't support
inf\!").
The fix adds early-exit guards in convertFloatValue() to return
failure() before calling APFloat::convert() when the source value is
infinity or NaN and the target type cannot represent it. This makes the
fold a no-op for unrepresentable special values, matching the existing
behavior for lossy ordinary conversions.
Fixes #185351
Assisted-by: Claude Code
[mlir][python] Avoid needless std::string copies in properties. NFC. (#186190)
MlirStringRef is copied into a Python str by nanobind's type_caster
anyway, so the intermediate std::string was a redundant allocation.
---------
Co-authored-by: Claude Opus 4.6 <noreply at anthropic.com>
[mlir][xegpu] Allow `DistributeLayoutAttr` in structural type conversion in Wg to Sg pass. (#186206)
Current approach fails if slice layouts are used in structural ops
arguments (scf.for etc)
[flang][OpenMP] Loop IVs inside TEAMS are predetermined private in 5.2+ (#185958)
Mark the induction variables of loops in a TEAMS construct as
predetermined private when OpenMP version is 5.2 or later.
HBSD: Make sure the kinfo_file struct always gets zeroed
Similar to FreeBSD commit 25cc459286a02b646751541ccde5a33319471c73,
apply a memset in one of the core functions used to fill the structure.
This ensures that all kinfo_file structure allocations are zeroed (at
least, at the point of calling shm_fill_kinfo_locked).
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
MFC-to: 15-STABLE
inpcb: overhaul in_pcb.h
Pull up all user-visible stuff to the top of the file and isolate the
rest under _KERNEL. The user visible parts are:
- struct in_conninfo
- struct xinpcb
- defines for inp_flags bits, that are shared between xinpcb and inpcb
PR: 293493
[LLVM] Fix assertion when dropping type tests with SelectInst users (#185523)
The `dropTypeTests` function assumes that after removing `llvm.assume`
users of `llvm.type.test` calls, any remaining users must be PHINodes
(from merged assumes). However, SimplifyCFG can also merge two
`assume(type.test(...))` sequences into `assume(select(cond,
type.test_1, type.test_2))`, leaving SelectInst users that trigger the
assertion.
Extend the assertion to also accept SelectInst. The
`replaceAllUsesWith(true)` call already handles all user types
correctly — only the assertion was too narrow.
Respect cert checkbox when creating a user. Fixes #16721
Also fixes a case where the form was not displaying properly when there were input errors. This likely needs more testing to confirm each action case is being handled properly with and without input errors in the submission.
[clang-tidy][NFC] Move std system headers to separate dir in tests (#185533)
We want only "std" headers included by default - move them to another
directory and include only it by default.
This avoids header pollution that comes from whole `Input/Headers` dir
sound: enforce MASTER volume mute during playback
MASTER mute (vol.mute) works while audio is playing. However, if a
stream is stopped and restarted (PCMTRIG_STOP -> PCMTRIG_START), the
audio will resume even though the mixer shows the MASTER volume as
muted. Other streams that are already playing remain silent. New streams
may also start playing audio regardless of the MASTER mute state.
The volume feeder now considers the MASTER mute when determining whether
a channel should be muted. This ensures MASTER mute is consistently
enforced for all streams and removes the dependency on trigger-driven
state propagation.
Tested with Creative Labs CA0132 card.
MFC after: 1 week
Reviewed by: christos
Differential Revision: https://reviews.freebsd.org/D55605
[LLDB] Add SB API test helpers in separate library (#185866)
This adds the helpers from #184656 for the SB API in a separate library
(`lldbSBUtilityHelpers`).
[lldb][FreeBSDKernelCore] Do not include <cstddef> (#186193)
`<cstddef>` was included for static assertion using `offsetof()`, but it
turns out that the header is already included before. Thus remove
`<cstddef>` includes from `RegisterContextFreeBSDKernelCore_<arch>.cpp`
files.
Fixes 3f65a03e8abb3e6fb3372cf4c254d6c9f090e2e0 (#183969)
Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
[doc][RISCV] Add documentation for customizing VCIX scheduling info (#183129)
Add a document to show how to customize VCIX instructions scheduling
information. Due to the lack of scheduling info "plugin" in LLVM, a user
has to modify the scheduling model files to reflect the latency,
occupancy etc. of their co-processor instructions connected through
VCIX. This document shows how to modify those files.
This document was originally written in another documentation format by
the listed authors, I used AI to convert it to RST and checked the
content.
---------
Co-authored-by: Craig Topper <craig.topper at sifive.com>
Co-authored-by: Michael Maitland <michaeltmaitland at gmail.com>
[AMDGPU] Fix scalar_to_vector v4f16 pattern (#186188)
The patterns for v4f16 and v4i16 generate invalid code since the result must be 64 bit wide.
Also activate gfx1100 testing for the scalar_to_vector test which covers this pattern.