Revert "[KnownFPClass] Refactor NaN sign encoding for KnownFPClass" (#235992)
Reverts llvm/llvm-project#220606
Breaks the build with GCC, since
`KnownFPClass::toFPClassMask(FPClassTest, bool)` is not a constant
expression, because the compound assignment operators (`|=`, `&=`, `^=`)
in `llvm/ADT/BitmaskEnum.h` are not `constexpr`.
ZTS: allow ctypes library discovery
Include the loader discovery tools used by Python ctypes in the
constrained Linux test path.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: ooonea <35407790+ooonea at users.noreply.github.com>
Assisted-by: OpenAI Codex
Closes #19576
Add tests for stale mmap pages after rollback and recv -F
A file that has been mapped with mmap() keeps its pages in the Linux
page cache. If the dataset is then rolled back, or receives an
incremental stream with "zfs receive -F", and the file keeps its
object number, generation and size but has different data, reads
and new mappings kept returning the pre-rollback data until the
cache was dropped or the dataset remounted (#10931). The on-disk
data was always correct.
Add mmap_cached_rollback and mmap_cached_receive to the mmap group.
Both fault the file in through a read-only mapping, change the
dataset underneath it, and check that read() and a fresh mapping
see the new contents. The mmap_stale_check helper does the mapping
and checksumming.
Both tests fail on Linux without the zfs_rezget() page cache fix
and pass with it. They also pass on FreeBSD.
[3 lines not shown]
drm/amdgpu: free the userptr ranges when a CS fails after parser_bos
From Jesse Zhang
6ac46ae5ac561d4fc7d4246ad83d71bed0d9af9a in linux-6.18.y/6.18.59
1b4da805a0ba354a549ce07459c871c17dd94fe0 in mainline linux
drm/i915/dmc: Harden DMC firmware payload parsing
From Dibin Moolakadan Subrahmanian
dfcfe2874e7c16e8460dc86ac1eeb54ea0e7f8aa in linux-6.18.y/6.18.59
8bb1858db453cd4250e3b633f5d2d09206024ca6 in mainline linux
drm/amdgpu: keep the eviction fence until the last handle is closed
From Jesse Zhang
dce8f7f03a47b1744dccf506268f9229b67fab47 in linux-6.18.y/6.18.59
3c44cbcec5eb370713bbd2c315ed7c34d8ccec2b in mainline linux
[llubi] Add support for llvm.masked.store. (#235876)
Re-use the logic for llvm.masked.load to also support llvm.masked.store.
The mask/pointer arithmetic logic is the same for both intrinsic.
PR: https://github.com/llvm/llvm-project/pull/235876
drm/amdgpu: Fix VCE 3 ring align_mask
From David Rosca
61f376654fb9d8c35896f3d5e85b95994513f647 in linux-6.18.y/6.18.59
2ee9836545e690c9e66ec203445d7705959fd7a8 in mainline linux
drm/i915/dmc: Add sanity check for DMC load address
From Dibin Moolakadan Subrahmanian
ef82b4d5cb4a3fe77c7f99008d78b8c64709e258 in linux-6.18.y/6.18.59
7dedc5bb11f95e96fe80757c924d8d9aa7327759 in mainline linux
drm/exec: don't immediately add prelocked obj to array of locked objs
From Christian Koenig
96d9996e5dbcfabed052c0d9377a382c95fed607 in linux-6.18.y/6.18.59
26401a4999f1596a515b2e704e7066ac09306488 in mainline linux
drm/amdgpu: report the BO alignment in bytes in GEM_LIST_HANDLES
From Jesse Zhang
07002a326c7cc03fd11be10e9cbc828aa4587908 in linux-6.18.y/6.18.59
d65a459dbc9a6c3b051e22c96f73598e34b31bfc in mainline linux
[InstCombine] Share common binop folds between icmp and [su]cmp (#222978)
This PR extends #216157, which adds a missed `[su]cmp` fold for matching
operands in order-preserving/reversing binops (covers `add`, `sub`,
`mul`)
- Extracted common-operand logic from `foldICmpBinOp()` into a
`matchCommonBinOpOperands()` helper function for `icmp`, `scmp`, and
`ucmp`. However, existing specialized `icmp` equality and signed
multiplication folds remain separate - see current state of
`foldICmpBinOp()`.
- The helper accepts the comparison predicate by reference so `icmp` can
canonically keep operand order (predicate flips with an order-reversing
operation), while `[su]cmp` can use the predicate to swap operand order
afterward.
- `m_AddLike` is explicitly used in the helper to support `or disjoint`
for `[su]cmp`, equivalent to non-wrapping addition.
- Moved `hasNoWrapProblem()` outside into a file-level function for both
the new helper and existing passes that rely on it.
[14 lines not shown]
deskutils/cosmic-screenshot: New port: Screenshot capture tool for the COSMIC desktop environment
COSMIC Screenshot is a utility to captures images of displays,
cropped slices of those displays, or images of app windows.
WWW: https://github.com/pop-os/cosmic-screenshot
PR: 299953
Reported by: Josh Megnauth <jo.sh at tutanota.com> (new maintainer)
drm/amdgpu: don't drop the runtime PM reference twice in amdgpu_gpr
From Jesse Zhang
652b1f26125fe48aed5f4944698a85b457eef491 in linux-6.18.y/6.18.59
de9f6bcdb44f0e410031002e2f103826ea6b6259 in mainline linux
drm/amdgpu/sdma3: Work around POLL_REGMEM / FENCE hang
From Timur Kristof
05507b9b19f95ce1ca1f5fc5d394ae1f4c5b59e2 in linux-6.18.y/6.18.59
752480ad62964edf0254e151110d3e53a7cb37de in mainline linux
drm/amd/pm: add zero fan stop temperature support on smu 14.0.2
From Kenneth Feng
6cfc4a25d4f02935977a6a45a60e7a0c966e38c6 in linux-6.18.y/6.18.59
a2eae9f4fa1b07f8e6e61b48931228da051943f0 in mainline linux
drm/ttm: fix swapped-out resources never leaving their bulk_move range
From Vadim Nikitushkin
b48ebe399b4e72baa323462580fdd83ebda561e1 in linux-6.18.y/6.18.59
3db7d7d583419f7b1f2e141e36418802dbb25cf8 in mainline linux
x11/xconfig: Update to 3.6
Remove unused packages before setting up drivers, so an early exit
during NVIDIA setup no longer leaves VM guest packages installed.
[RISCV] Double the cost of slides (#232827)
From what I've measured and from what I can read on
https://camel-cdr.github.io/rvv-bench-results, vslideup and vslidedown
generally aren't pipelined to the same degree as arithmetic ops. This,
combined with the fact that they require a vsetvli toggle which we don't
currently cost for, makes shufflevector sequences emitted by SLP
expensive on hardware.
Doubling the costs of the slides prevents unprofitable SLP vectorization
in 525.x264_r, and improves performance by 3.91% on the SpacemiT-K3,
-march=rva23u64 -O3 -flto. There were no other noticeable changes on
SPEC CPU 2017.
[X86][AsmParser] Fix Intel mask position for AVX512PF prefetch instructions (#233869)
AVX512PF gather/scatter prefetch instructions reject a memory operand
followed by a mask decorator in Intel syntax. LLVM also prints the mask
as a leading operand, producing Intel disassembly that cannot be
reassembled.
Move the mask after the memory operand in the Intel assembly variant of
`avx512_gather_scatter_prefetch`. Preserve the AT&T variant and the
outer dialect selection so the literal mask braces survive TableGen
processing.
Add Intel MC tests for all 16 mnemonics, using the 32 existing AT&T
encoding expectations. Cover sized/unsized memory, high VSIB registers,
YMM/ZMM indices, k1-k7, scaled addressing, compressed displacement, and
assembly output round trips. Add diagnostics for missing/zero masks,
zeroing, incorrect VSIB widths, and incorrect memory size.
Update the existing APX disassembler expectation to the corrected mask
[13 lines not shown]
[VPlan] CSE replicated loads (#234525)
This improves a pattern found in 736.ocio_r, see
https://github.com/llvm/llvm-project/pull/195886#issuecomment-6196462669
In the following loop `s` isn't noalias, so a runtime alias check needs
to be added:
```c
void f(const float *s, const unsigned short *in, float *out, long n) {
for (long i = 0; i < n; i++) {
out[4 * i + 0] = in[4 * i + 0] * *s;
out[4 * i + 1] = in[4 * i + 1] * *s;
out[4 * i + 2] = in[4 * i + 2] * *s;
out[4 * i + 3] = in[4 * i + 3] * *s;
}
}
```
[65 lines not shown]
Remove unused packages before setting up drivers
Package removal was queued and only run after main returned, so any
early exit during driver setup (e.g. NVIDIA) skipped it and left
packages like virtualbox-ose-additions installed. The remove_*
functions now delete right away, before the setup functions run.
Also drop the leftover remove_qemu calls, which aborted the script
under set -e, and stop generating xorg.conf with X -configure for
NVIDIA.
www/py-flask-assets: Update to 2.1.0
2.0 uses flask._request_ctx_stack, which Flask 3 removed, so
flask_assets fails to import with the Flask in the tree. 2.1.0 works
with Flask 3.
While here, add concurrent to USE_PYTHON.
Switch to USE_PYTHON=pep517 (the package metadata becomes dist-info).
Take maintainership, as offered by kevans@.
PR: 299904
OCI: Remove dead code
We don't need to pick a repository URL when all we're doing is enabling
one which was specified in /etc/pkg/.
Reviewed by: dch, imp
Fixes: c73ae6734899 ("release/tools: use same pkg settings ...")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D60868
(cherry picked from commit 93c05b743ea865bb87653e9ee5fbaa837c00eee7)