[Mips] Don't use sdc1/ldc1 to spill f64 registers on MIPS I (#244858)
MIPS I has no sdc1/ldc1, but storeRegToStack/loadRegFromStack used
them for AFGR64 registers. Spills and callee-saved register saves and
restores of doubles came out as sdc1/ldc1.
Use two swc1/lwc1 instead, with the same memory layout as sdc1/ldc1 so
the existing CFI offsets stay right. The prologue and epilogue count
one instruction per callee-saved register to find where the saves end
and the restores start, so count two for an AFGR64 register on MIPS I.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[RISCV][GISel] Update FP libcall legalizer tests to use concrete types and G_BITCAST. NFC (#244498)
A couple tests were using FP register arguments without the F or D
extension. I suspect a copy/paste mistake. I've changed them to integer
registers.
Assisted-by: Claude
[Clang][Driver] Clear group bits from parseSanitizeArgs (#245495)
parseSanitizeArgs expands sanitizer groups with expandSanitizerGroups,
which
leaves group bits (such as BoundsGroup or AllGroup) set in Output even
when
every member of the group is later disabled. Because
SanitizerSet::empty()
checks the raw mask while toString() only formats individual sanitizers,
those stale group bits caused the driver to emit empty flags (such as
-fsanitize-trap=, -fsanitize-recover=, -fsanitize-merge=, and
-fsanitize-annotate-debug-info=) to cc1.
Clear group bits before returning from parseSanitizeArgs.
Assisted-by: Gemini
devel/gerrit: update to 3.15.0, fix rc.d and setup
Release notes: https://www.gerritcodereview.com/3.15.html
Gerrit 3.15 requires Java 25 and a schema migration plus changes
index rebuild; see UPDATING and pkg-message for the upgrade steps.
rc.d script:
- Keep the pidfile in /var/run/gerrit, created on start and owned
by the service user, instead of the site's logs directory.
- Send daemon output to gerrit_log_file, which was created but
never used.
Setup:
- Install /var/db/gerrit owned by gerrit:gerrit so the site can be
initialized as the unprivileged user.
- Tell users to run init as the gerrit user with --no-auto-start,
so init does not leave a Gerrit instance running outside of rc(8).
lang/v8: update to 15.8.62.31 (Chrome 158 stable)
Sync with lang/v8-beta at 15.8.62.9:
- Update the dependency pins from DEPS and the Temporal crates to the
versions in Chromium's third_party/rust (ICU4X 2.4).
- Adapt the PartitionAlloc zero segment patches to the new
GetWellKnownReadOnlyRegions() interface, and the d8 ASLR check to
the new guard condition.
- Disable the new ECMA-402 ICU4X backend (v8_enable_ecma402_icu4x),
which is only used when enabled with runtime flags.
[X86] Expand VASTART_SAVE_XMM_REGS outside the entry block (#234871)
With -fstack-clash-protection, a variadic function whose frame needs a
probe loop never saves its XMM argument registers. Then `va_arg(ap,
double)` reads uninitialized stack. As @efriedma-quic pointed out on
#178268, X86ExpandPseudo looks for VASTART_SAVE_XMM_REGS only in the
entry block. The probe loop moves it into a new tail block, so it is
never expanded and the asm printer emits it as a comment.
This makes the pass search every block when X86MachineFunctionInfo
records that instruction selection created the pseudo, which is now
isNotDuplicable. The probe loop recomputes live-ins for its new blocks,
so the expansion's liveness stays correct. Expanding the pseudo before
register allocation would bring back the XMM spills it exists to avoid.
The tests cover -O2 and -O0 after the probe loop and after a probed
realignment, and the flag's MIR round trip. The issue's reproducer
prints -1.250000e+00 with the patched clang at -O0 and -O2.
[7 lines not shown]
LowerTypeTests: Only invalidate analyses of modified functions in DropTypeTests (#244832)
Previously everything was invalidated on any changes, so even
invariant function analyses were discarded.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[AMDGPU] Add MFMA co-exec rows for gfx942 MFMAs
Add MFMA co-exec rows for gfx942 MFMAs for both gfx942 and gfx950.
Gfx950 support gfx942 mfma opcodes as well as others.
Add rows for:
XDL_2Pass:
v_mfma_f32_4x4x4_16b_{f16,bf16}
v_mfma_i32_4x4x4_16b_i8
XDL_4Pass:
v_mfma_f32_16x16x16_{f16,bf16}
v_mfma_i32_16x16x32_i8
v_mfma_f32_16x16x8_xf32 (gfx942 only)
v_mfma_f32_16x16x32_{bf8,fp8}_{bf8,fp8}
XDL_8Pass:
v_mfma_f32_16x16x4_4b_{f16,bf16}
[43 lines not shown]
[AMDGPU] Precommit legacy MFMA co-exec tests (NFC)
Add gfx950 coexec scheduler cases for an SGEMM
(v_mfma_f32_16x16x4_f32), a gfx940 SMFMAC (v_smfmac_f32_16x16x32_f16)
and a DGEMM (v_mfma_f64_4x4x4_f64), and unit test rows for one MFMA
per legacy variant on gfx942 and gfx950. These MFMAs fall back to a
permissive window that lets anything co-execute, and
v_mfma_f64_16x16x4_f64 uses its gfx950 rule on gfx942 as well.
Assisted-by: Claude Opus 5.5
[flang] Keep do concurrent structured when its branching stays in the body
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.
[AMDGPU] Fold fmul with zero checks to fmul.legacy
Recognize f32 multiplication with zero checks in AMDGPUCodeGenPrepare,
including fabs/fneg wrappers.
Example:
```
(x == 0 || y == 0) ? +0.0 : x * y
==>
llvm.amdgcn.fmul.legacy(x, y)
```
[Hexagon] Allow moving a reader out of a packet that writes its source (#245498)
Instructions in a packet read their sources before any write in the same
packet, so a reader can leave the packet when the writer stays:
{ r2 = add(r4,r5) // writes r2
r6 = sub(r2,r7) } // reads the old r2
The global scheduler rejected pullup of the sub instruction. It is now
allowed.
It stays rejected when the write is forwarded, because the reader then
sees the new value:
{ v2.cur = vmem(r0+#0) // forwards the loaded value
v6 = vadd(v2,v7) } // reads the new v2
The rules are in HexagonInstrInfo::isSafeInBundleWAR. The new
-enable-def-use-same-packet=false option turns the relaxation off.
[17 lines not shown]
[AMDGPU][GlobalISel] Fix ds_append/ds_consume addressing
This matches the SelectionDAG fix. For LDS, ds_append and ds_consume
address memory only through the 16 bit instruction offset and ignore
M0, but the selector copied the pointer base into M0. Select a constant,
dword aligned LDS address into the offset field and diagnose any other
LDS address as unsupported.
For GDS, the offset field must be zero and the address comes from
M0.base, so build M0 as `(addr << 16) | gds_size`. Using GDS on a
subtarget without GDS is now diagnosed.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
ds_append v0 offset:16
```
[AMDGPU] Fix ds_append/ds_consume addressing in SelectionDAG
For LDS, ds_append and ds_consume address memory only through the 16 bit
instruction offset. M0 is not used, but isel put the pointer (or its
base) into M0, so the counter was read at the wrong address. Select a
constant, dword aligned LDS address into the offset field and diagnose
any other LDS address as unsupported.
For GDS, the ISA requires the offset field to be zero and takes the
address from M0.base, so pack the whole address into M0 as
`(addr << 16) | gds_size`. Using GDS on a subtarget without GDS is now
diagnosed instead of silently encoding a GDS bit.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
[4 lines not shown]