beinstall: Avoid chrooting into new world
The new world may use system calls that are not in the currently-running
kernel, so we cannot chroot into the new environment to run `make
installworld`, `etcupdate`, etc. Partially revert commit 16702050ac95
("beinstall: perform pre-installworld steps") and switch back to using
DESTDIR for installworld and so on.
Reported by: olivier
Reviewed by: olivier
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50682
(cherry picked from commit 7fde3e62231ac397a779e4fef729908c5ef6f53a)
[VectorCombine] Align shrinkLoadForShuffles to register boundaries (#209775)
Round up the shrunk load element count to the next full vector register
boundary to avoid scalar remainders that prevent shuffle lowering.
For example, on X86 AVX-512 a <16 x double> load with shuffle indices
1-8 was shrunk to <9 x double>. This legalizes to v8f64 + scalar f64,
and the scalar operand in BUILD_VECTOR prevents DAGCombiner from folding
it into a VECTOR_SHUFFLE, producing ~15 instructions instead of 2
(VMOVDQA64 + VALIGNQ).
AMDGPU/GlobalISel: Fix cs_chain use of constrainOperandRegClass
Make a copy before constraining to avoid setting register class on
a register that can be defined by generic opcode.
[SPIR-V] Fix vloada_halfn builtin number (#212218)
vloada_halfn was incorrectly mapped to vload_half builtin number (174)
instead of its own (179), causing it to demangle to the wrong OpenCL
builtin
AMDGPU/GlobalISel: Test for cs_chain argument from G_EXTRACT_VECTOR_ELT
This is a bug since G_EXTRACT_VECTOR_ELT will end up with a register
class on the dst operand. The combiner will crash because of it.
mt76: update script to to deal with 7921 and 7925 flavors
Update the mt76/zzz_fw_ports_fwget.sh script to set fwget to download
mt7921 and mt7925 rather than the these days non-existent mt792x flavor.
Sponsored by: The FreeBSD Foundation
MFC after: 30 days
Differential Revision: https://reviews.freebsd.org/D57242
[SimplifyCFG] Fix DomTree update in `simplifySwitchWhenUMin` (#212008)
In the test `switch_remove_dead_cases`, both case 4 and case 5 jump into
bb `%case_ret`. Thus, the edge will be removed twice, triggering an
assertion failure. This patch only removes the edge in DT when we remove
the last edge to `DeadCaseBB`.
[TableGen] Check for EOF in prepSkipRegion to avoid preprocessor crash. (#208961)
Part of #151476
prepSkipRegion currently scans a line until it finds a newline before
advancing to the next line. It crashes if it finds an EOF first. This
change checks for EOF to prevent a segmentation fault.
[DebugInfo][DwarfDebug] Move emission of types from beginModule() to endModule() (7/7) (#211536)
RFC
https://discourse.llvm.org/t/rfc-dwarfdebug-fix-and-improve-handling-imported-entities-types-and-static-local-in-subprogram-and-lexical-block-scopes/68544
This patch proposes to move the emission of types and type-like entities
from `DwarfDebug::beginModule()` to `DwarfDebug::endModule()`.
Effectively, this changes nothing but the order of debug entities in the
resulting DWARF.
This is needed to simplify DWARF emission in a context of proper support
of function-local types, making all the types handled in a single place,
together with other global and local entities.
This change has already been reviewed and approved in
https://reviews.llvm.org/D144008, but I’m opening a new PR for
visibility.
Co-authored-by: Kristina Bessonova <kbessonova at accesssoftek.com>
fwget: update MediaTek firmware listings to match ports
Update fwget(8) to download wifi-firmware-mt76-kmod-mt7921, and
wifi-firmware-mt76-kmod-mt7925 firmware packages instead of the
no longer available mt792x version.
Add another PCI vendor to recognize ITTIM IDs for mt7921-based
MediaTek cards.
(bz reduced the license in the ittim file to an SPDX tag and updated
the commit message, given this is only half the work from the review)
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D57242
NAS-141918 / 27.0.0-BETA.1 / Simplify cloud_sync SyncRWLock internals (#19391)
I noticed some changes to this code in a previous PR that has since been
merged and realized we're being inefficient when it comes to the locking
primitives. SyncRWLock kept a separate threading.Lock and wrapped it in
a Condition, but a Condition can own its lock directly. The extra
attribute is gone and every critical section now enters the Condition
itself. Behavior is identical since the lock is never acquired
reentrantly.
Also removes FsLockManager._choose_lock, dead code superseded by
_choose_sync_lock.
No public API changes. The only consumers use the manager's lock()
context managers, which are unchanged.
p5-WWW-Mechanize 2.22 API has changed. Apply patches for
p5-WWW-Mechanize-Shell 0.62 to avoid security problem and warning.
p5-WWW-Mechanize-Shell tests pass with both versions of p5-WWW-Mechanize.
[AMDGPU] Add per-class register stress options (#210907)
Add options -amdgpu-stress-vgpr=N, -amdgpu-stress-agpr=N, and
-amdgpu-stress-sgpr=N to limit each register class independently by
reserving registers beyond N.
[InlineSpiller] Avoid spill hoisting interference (#211809)
When hoisting spills and the source is a PHI, the "hoisted" spill may be
inserted only after the basic block prologue. This may require extending
this segment of the source value's live interval.
Abort the hoisting if this extension of the segment would interfere with
another live interval assigned to the same physical register.
Signed-off-by: Lukas Sommer <lukas.sommer at amd.com>
[SPIR-V] Guard against infinite loop in decorateUsesAsNonUniform (#208224)
Add a visited set so an SSA cycle through a loop-carried phi does not
hang the worklist walk
databases/immudb: deprecate and expire
Not actively maintained (by me).
Multiple versions behind on upstream.
Please take maintainership if you use this.
[SYCL] Update SYCL to use the new liboffload allocation API (#212223)
PR #209196 split host memory allocations into a dedicated API. Update
SYCL to use the new host allocation function introduced by that change.