updates only visible rows, making the spinner appear quickly. However, Tabulator keeps extra rows just outside the viewport in its virtual-DOM buffer. Those rows may show a spinner but are excluded from the “visible” update that removes it, leaving them spinning indefinitely.
[rtsan] Align each thread's context to a cache line (#245043)
Threads write to their contexts when they
- Enter/leave nonblocking functions
- Enter/leave disabled scopes
I observed that
1. We do this a lot
2. The contexts were 8 bytes and could be allocated side by side
This made it possible to have issues with false sharing between threads,
since each thread writes to its own context. So like, if e.g.
- T1 writes its ctx => it takes the cache line away from the other
threads
- T2 writes its ctx => it needs to pull the line back
[14 lines not shown]
[CodeGenPrepare] Don't hang on select cycles in unreachable code
When optimizeSelectInst() turns a group of selects into a branch,
getTrueOrFalseValue() looks through the selects of the group that a
select uses. In unreachable code, the selects can use themselves or
each other in a cycle, and this loop never ends. llc removes
unreachable blocks before CodeGenPrepare, so a normal llc run does not
hang.
In reachable code, the loop visits each select at most once. Stop it
after as many steps as there are selects in the group.
Assisted-by: Claude Code (Claude Opus 5.5)
[flang] Keep do concurrent structured when its branching stays in the body (#244176)
A DO loop whose raw branching is confined to its body keeps its
structured
form, with only the body folded into an scf.execute_region. Only
increment
loops qualified. A do concurrent header puts no control flow in the body
either: its indices are always integer and its mask is a test inside the
innermost loop. So a do concurrent qualifies under the same body checks.
This lets a do concurrent with, for example, a SELECT CASE in its body
lower
inside an OpenACC kernels region instead of hitting the "unstructured do
loop
in acc kernels" TODO.
The tests cover a do concurrent that keeps its structured form with a
SELECT
CASE in its body, a mask over two indices, a CYCLE, a locality
[14 lines not shown]
[CodeGen] Fix finalizeBundle for a redefinition after a dead def
Since 58f3b0dd8d7b (#155448), finalizeBundle() sets the register units
of a physical register in LocalDefsP only for the first def of the
register in the bundle, and only if that def is not dead. When a
register is defined dead and then defined again, a later read in the
bundle is not marked internal, and the BUNDLE reads the register from
outside the bundle. With -verify-machineinstrs, this gives "Using an
undefined physical register", for example after IT block insertion on
Thumb2.
Set the units for every def that is not dead, as before #155448. This
runs the loop over the units again for each such def, not only for the
first one.
This is a regression in LLVM 22: llc 21.1.8 compiles the IR that the
Thumb2 test is reduced from without the error. I did not see wrong code
from it: only the internal flag of the read and the operands of the
BUNDLE are wrong.
[2 lines not shown]
libvmmapi: Size the guard reservation from existing memory
When the VM's memory already exists, as it does after bhyveload(8),
vm_setup_memory_domains() maps the existing segment but sizes its
address space reservation from the requested size. If the existing
segment is larger, the mapping runs past the reservation and replaces
the guard region after it, and anything else mapped there.
Look for existing memory before sizing the reservation.
Reviewed by: bnovkov, markj
Approved by: markj
Fixes: 08c7dd2fbe4f (libvmmapi: Add support for setting up and configuring guest NUMA domains)
MFC after: 1 week
Sponsored by: Alchemilla Ventures Private Limited
Differential Revision: https://reviews.freebsd.org/D61917
amd64/vmm: Validate guest MSRs restored from a snapshot
vmx_vcpu_snapshot() copies the saved guest MSR array from userspace
without checking it. vmx_msr_guest_enter() and
vmx_msr_guest_enter_tsc_aux() write these values to the host's MSRs
before guest entry, so a non-canonical LSTAR, CSTAR or KGSBASE, or a
TSC_AUX with reserved bits set, raises #GP in the host and panics it.
Check the values on restore and fail with EINVAL, leaving the vCPU's
MSRs unchanged. STAR and SF_MASK need no check, since the CPU accepts
any value for them. PAT is not written to a host MSR, but apply the
check used for guest writes to it as well.
Reported by: llm-postcr
Reviewed by: markj
Approved by: markj
Fixes: 483d953a86a2 (Initial support for bhyve save and restore.)
Fixes: f5f5f1e7d6de (Support guest rdtscp and rdpid instructions on Intel VT-x)
MFC after: 1 week
[2 lines not shown]
[LLVM][AutoUpgrade] Preserve operand bundles when upgrading coro.end (#245322)
When `UpgradeIntrinsicCall` upgrades `llvm.coro.end` or
`llvm.coro.end.async`, forward any operand bundles (such as WinEH `[
"funclet"(token %cp) ]`) from the original call to the newly created
call instead of dropping them.
Stack:
1. #245322 **(this PR)**
2. #245323
3. #245324
4. #245325
[Mips] Use libcalls for sqrt on MIPS I (#244947)
MIPS I has no sqrt.s and sqrt.d, but FSQRT and STRICT_FSQRT were left
legal, so llvm.sqrt and the constrained sqrt failed to select. Expand
them on MIPS I so they become calls to sqrtf and sqrt.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[AMDGPU] Remove R600 usage from clang, flang and lld tests. NFC
Test cleanup plan for removing the R600 (TeraScale) backend:
* [x] clang, flang, lld tests (this patch)
* [ ] llvm tests
Tests that only cover R600 are deleted. In tests shared with other
targets, the r600 RUN lines and their now unused checks are removed.
annotations-global.c tests annotations on globals in a non zero address
space, so it is retargeted to amdgpu, which also uses `G1`:
```
// RUN: %clang_cc1 %s -triple r600 -emit-llvm -o - | FileCheck %s --check-prefix AS1-GLOBALS
// AS1-GLOBALS: target datalayout = "{{.+}}-A5-G1"
-->
// RUN: %clang_cc1 %s -triple amdgpu -emit-llvm -o - | FileCheck %s --check-prefix AS1-GLOBALS
// AS1-GLOBALS: target datalayout = "{{.+}}-A5-G1{{.*}}"
```
[5 lines not shown]