[coro] Remove renumberBlocks to fix assert (#244573)
GenericCycleInfo was not invalidated, so asserted when profcheck is
enabled that the block number epoche is outdated.
Remove the `renumberBlocks` call to fix this.
Given that e.g. `GenericCycleInfo` already uses the numbers as block
indices, they should still be sufficiently dense.
[MLIR][NVVM] Fix lowering of unscaled conversions on older architectures (#243009)
This patch fixes the lowering of unscaled `FP4` and `FP6` conversions
to be supported on older architectures by lowering down to the
existing unscaled intrinsics.
Lit tests are updated to reflect the same.
Assisted-by: Claude Code
Signed-off-by: DharuniRAcharya <dharunira at nvidia.com>
[SCEV] Account for use flags in impliesPoison. (#244268)
Use flags only hold where the expression is used, so an exit count with
use flags may be poison when expanded in the preheader, even if the
earlier exit is taken first. Conservatively return false from
impliesPoison for non-canonical uses, keeping them in the umin_seq.
PR: https://github.com/llvm/llvm-project/pull/243812
[mlir][linalg] Scaled contract decomposition (#243872)
Adds decomposition of linalg.scaled_contract into a low-precision
contraction of the unscaled inputs followed by scaling and accumulation
of the partial results. Block scaled dimensions are expanded at scaling
block boundaries, which removes semi-affine indexing maps where
possible.
Also, fixes the op's semantics for scales which the scaling extension
truncated to f8E8M0.
Some quantization schemes deliberately use higher precision scales.
These are now converted to the output type and
multiplied with the input data instead, preserving their precision.
Decomposition follows the OCP MX dot product definition and allows
preserving a separate low-precision contraction toward an efficient
lowering path.
Assisted-by: Claude
[CVP][LVI] Allow inserting freeze to eliminate min/max in select expressions (#240166)
Fot this motivating expression...
```
v = select (m < 0), (..., (min(m, 0))), (other)
^ min is redundant, can just be "m"
```
...we haven't previously been folding it in CVP without a guarantee that `m` is
not undef (i.e. attribute noundef). This PR lifts that restriction, and allows
removing the redundant min operation, and if needed, inserts a freeze.
Also see <https://reviews.llvm.org/D151295>.
Related to #239566.
PR: 240166
Assisted-by: Claude
[X86] lowerShuffleAsBitMask - lower to AND(FREEZE(X),MASK) for blend-with-zero shuffle patterns. (#243097)
Similar to #243178 - ensure we freeze the input to prevent AND(poison,0)
-> poison folds.
X86 has far too many of these mask-with-zero/allones folds that ignore
poison propagation and we're starting to see a lot of regression reports
now that SimplifyDemandedBits/VectorElts is handling UNDEF/POISON/FREEZE
more aggressively.
Until #152107 (#149798) lands we're stuck with a few annoying
regressions, but I'd rather avoid adding temporary workarounds.
stdio: Fix error case for positional %wN / %wfN
In the case were N was not a valid bit width, we were taking the wrong
error path.
Fixes: 5e809bf1c93f ("stdio: Fix positional %wN / %wfN conversion")
(cherry picked from commit 0bf5d86620d047b4551d7414bf8011a328264b3d)
stdio: Fix positional %F conversion
When a format uses positional arguments, __find_arguments() walks it
first to learn the type of every argument, and lists the floating
point conversions as A a E e f G g. F is missing, so a double that
is only referred to through %F never gets a type, its slot in the
argument table stays unset, and the conversion reads whatever is
there:
printf("[%1$F]\n", -INFINITY); [0.000000]
printf("[%1$F]\n", 1.5); [0.000000]
printf("[%F]\n", 1.5); [1.500000]
With a width taken from another argument, "%1$*2$F", vsnprintf(3)
returned lengths like 2103024 for a ten character result; abseil's
str_format test allocates that much and was killed for it on
FreeBSD. The same format with %1$f, or with any other conversion of
the same argument, works because those give it a type.
[9 lines not shown]
clang: Fix warnings in ARM GCS ACLE header
Including <arm_acle.h> in C code compiled with -Wstrict-prototypes
results in warnings (or errors if -Werror is in effect) due to missing
parameter lists for __gcspr() and __gcspopm().
Submitted upstream as PR#242286.
MFC after: 1 week
Reported by: Pete French <pete at twisted.org.uk>
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D61503
(cherry picked from commit 74d72b3491e810068313e49629c3b8fe46f29318)
libgeom: Open the control device read-write
Try to open the control device read-write first, and fall back to
read-only if that fails and the error is EACCES. This prepares us for a
future in which GEOM requires write access to execute verbs that modify
the configuration.
MFC after: 1 week
Event: EuroBSDCon 2026 DevSummit
Reviewed by: imp, markj, emaste
Differential Revision: https://reviews.freebsd.org/D59592
(cherry picked from commit 1e9e198b7f064322687746d26b283c3fcbad4579)
geom: Check file flags before handling control request
Pass fflag down to g_ctl_req() and:
* Refuse all requests unless fflag has the FREAD bit set
* Refuse all but getxml unless fflag also has the FWRITE bit set
This should allow us to restore read access to /dev/geom.ctl for group
operator; they will then be able to run `gpart list` or `gpart backup`
but not commands that actually modify the table.
For backward compatibility, we set the FWRITE bit if it is not already
set and the calling thread has the PRIV_GEOM privilege, which is
automatically granted to a jailed or unjailed superuser. This should
cover the case of older binaries (which open /dev/geom.ctl read-only)
running as root on a newer kernel. Since we intend to merge this to
stable/15, the compatibility code is conditional on COMPAT_FREEBSD14.
[6 lines not shown]
stdio: Fix error case for positional %wN / %wfN
In the case were N was not a valid bit width, we were taking the wrong
error path.
Fixes: 5e809bf1c93f ("stdio: Fix positional %wN / %wfN conversion")
(cherry picked from commit 0bf5d86620d047b4551d7414bf8011a328264b3d)
clang: Fix warnings in ARM GCS ACLE header
Including <arm_acle.h> in C code compiled with -Wstrict-prototypes
results in warnings (or errors if -Werror is in effect) due to missing
parameter lists for __gcspr() and __gcspopm().
Submitted upstream as PR#242286.
MFC after: 1 week
Reported by: Pete French <pete at twisted.org.uk>
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D61503
(cherry picked from commit 74d72b3491e810068313e49629c3b8fe46f29318)
stdio: Fix positional %F conversion
When a format uses positional arguments, __find_arguments() walks it
first to learn the type of every argument, and lists the floating
point conversions as A a E e f G g. F is missing, so a double that
is only referred to through %F never gets a type, its slot in the
argument table stays unset, and the conversion reads whatever is
there:
printf("[%1$F]\n", -INFINITY); [0.000000]
printf("[%1$F]\n", 1.5); [0.000000]
printf("[%F]\n", 1.5); [1.500000]
With a width taken from another argument, "%1$*2$F", vsnprintf(3)
returned lengths like 2103024 for a ten character result; abseil's
str_format test allocates that much and was killed for it on
FreeBSD. The same format with %1$f, or with any other conversion of
the same argument, works because those give it a type.
[9 lines not shown]
[clang][NFC] Remove stale disabled ext-vector comparison test (#243510)
The `#if 0` block in `test6` has been disabled since 2009 because vector
comparisons could crash codegen. That was fixed in r76726
([`5ac69057c000`](https://github.com/llvm/llvm-project/commit/5ac69057c000)),
which changed `ScalarExprEmitter::EmitCompare` to use `isFPOrFPVector()`
and added the unguarded `test8` to this same file.
`test8` already checks the same float4 comparisons with exact `fcmp`
expectations, so this older block is redundant. It also contains a stale
`a < b` duplicate where `test8` has `a > b`.
Remove the disabled block. No functional change; coverage remains in
`test8`.
[VPlan] Clamp the AVL to the maximum safe distance via umin. (#243812)
Use umin to clamp maximum AVL by the safe dependnece distance instead of
select. This removes an unnecessary select without profile info, and in
some cases umin is also cheaper than compare/select.
PR: https://github.com/llvm/llvm-project/pull/243812
plugins: only wheel and wwwonly may stop services
configd's socket is open to every local user, so without allowed_groups
any of them could stop these services. Matches core's service stop
actions (08c23bcdd9) and net/netflector (8011b98b2). acme-client's
http-stop is its service stop; iperf's job stops stay open, like core's
interface.ping.stop.