[SystemZ] Add missing CC def to TRANSLATE EXTENDED (TRE)
TRE sets the condition code (0: operand processed, 1: test character
found, 3: CPU-determined amount processed), but its definition did not
list CC as an implicit def.
Adding the def raises TRE's write count from two to three, so update the
TRE scheduling entries for z196 through z17 to match (as for CU41/CU42).
Assisted by: IBM Bob
[flang] Let FIR AA calls access the data of descriptor arguments (#244452)
getCallModRef finds whether a call may access a variable through its
arguments with alias(arg, var). When the argument is the address of a
descriptor, e.g. an allocatable passed to an allocatable dummy, alias()
answers NoAlias for the data that the descriptor describes, because the
address of a descriptor does not alias the address of data. So getModRef
answered NoModRef for the data of an allocatable across a call that may
modify it, and LICM could hoist a read of the data out of a loop that
passes the descriptor to such a call.
An argument that is the address of a descriptor now also passes the data
that the descriptor describes. getCallModRef builds the source of that
data as getSource() does for a fir.box_addr of a fir.load of the
argument, and compares it with the source of the variable using the part
of alias() that compares the sources, which moves into aliasSources().
The intent of the dummy applies to the data as well.
Assisted-by: AI
[flang] A call may access a saved local through another instance of its procedure (#244077)
`fir::AliasAnalysis::getModRef` assumed that a call to a Fortran
procedure cannot access a saved local variable other than through its
arguments, unless the variable is a TARGET or is used in an internal
procedure. That is wrong when the call may invoke the procedure that
owns the variable: all the instances of a procedure share its saved
local variables (F2023 8.5.16), so the other instance may read or write
the variable. For example, LICM hoisted the load of `x` out of the loop
below, and the program printed 0 instead of 6 at `-O1` and above:
```fortran
module m
contains
recursive subroutine work(nested, total)
logical, intent(in) :: nested
integer, intent(out) :: total
integer, save :: x
integer :: i
[62 lines not shown]
[GlobalISel] Use Info.size from getTgtMemIntrinsic for the memory type (#242433)
Handle every value of Info.size like SelectionDAGBuilder does, instead
of always using the size of memVT:
- An unknown size creates an unknown-size MachineMemOperand. Previously
llvm.aarch64.mops.memset.tag was described as a 1-byte store.
- A known size that differs from memVT uses a scalar of that size. This
changes PowerPC, which reports a 31-byte access for llvm.ppc.vsx.lxvd2x,
llvm.ppc.altivec.stvx and related intrinsics.
- A size that matches memVT keeps the type of memVT.
---------
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[lld][MachO] Fix branch extension thunks for ld -r inputs (#243818)
TextOutputSection::finalize() walked each section's relocations
backwards to visit its branches by ascending offset, asserting the
descending order compilers emit. Object files from ld -r do not follow
it, which failed the link with a misleading "thunk range overrun" error.
Sort the relocations of sections that are out of order while parsing
them, so that finalize() can rely on that order.
[CUDA][clang] Remove parenthesized #pragma unroll warning (#244791)
nvcc accepts both `#pragma unroll N` and `#pragma unroll (N)` and
generates identical code, and the CUDA C++ Programming Guide
documents the parenthesized form.
The `-Wcuda-compat` warning matched pre-CUDA-8.0 `nvcc` behavior, when
the unroll factor had to be a literal. CUDA 8.0 added support for integral
constant expressions, so the warning is obsolete.
Assisted-By Claude
[mlir][vector] Allow single-element strided load/store in LLVM lowering (#241579)
The verifier allows a non-unit stride in the most minor memref dim when
`vector.load`/`vector.store` accesses a single element. The LLVM
lowering still asserts unit stride, so this crashes
`-convert-vector-to-llvm`:
```mlir
func.func @f(%m: memref<4xf32, strided<[3]>>, %i: index) -> vector<1xf32> {
%0 = vector.load %m[%i] : memref<4xf32, strided<[3]>>, vector<1xf32>
return %0 : vector<1xf32>
}
```
This patch moves the verifier condition into
`vector::isValidLoadStoreMemRefLayout` and uses it in both places, so
they cannot diverge again.
Fixes #239720
drm/amd/display: remove duplicated prev_p_state_change_support assignment
From Melissa Wen
dc95f03eb15ce2ef5d5a2e84acd90788bf1ccba6 in linux-6.18.y/6.18.65
11e8f72b09a6a3c0950b9558abd37559dd098698 in mainline linux
drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state
From Melissa Wen
0b79819d925c9357bd9138e9c5f75b03c6fd5214 in linux-6.18.y/6.18.65
ec167063dbf9fc66dc1364b6f9dd220c6742edeb in mainline linux
drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset
From Jesse Zhang
cef7ee11e45c54ac06710f0d990ecd7d4cac5ed2 in linux-6.18.y/6.18.65
c7ae3b2043282da8de92bd925c8f6bb614633181 in mainline linux
drm/amdgpu/userq: use drm_exec in amdgpu_userq_fence_read_wptr
From Sunil Khatri
a645c6f241162fde8a42af19e3562c80d772fb51 in linux-6.18.y/6.18.65
3aab50410653fe7eb35eb6f9c2b27e3549ab09e6 in mainline linux
drm/amdgpu/userq: need to unref bo
From David (Ming Qiang) Wu
496f0c0c60ec62802b0f13b393871eb81b1d0869 in linux-6.18.y/6.18.65
b665f29a2f93a266183dc8cd5d732f203157613b in mainline linux
[AMDGPU][AsmParser] Pre-commit tests for v_pk_fmac_f16 fp inline constants. NFC (#245422)
Add GFX11/GFX12/GFX13 MC tests for v_pk_fmac_f16 with fp literal tokens
that are f16 inline constants (0.5, -1.0), a non-inlinable fp value
(1.5), an integer literal (0x3800), and an explicit lit(0.5). The check
lines reflect current behavior, where 0.5 and -1.0 are encoded as 32-bit
literals.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
drm/amdgpu/atom: bound the VBIOS date, part number, version and build getters
From Hari Mishal
7c806bd9403535e8f7e8d266728fa82073e5f741 in linux-6.18.y/6.18.65
aee05c455ad3e72df9a0591baf0b60da518800f3 in mainline linux
audio/sound-firmware-cirrus: New port
Firmware for the Cirrus Logic smart speaker amplifiers found behind the
HDA codec of some laptops: the DSP program (wmfw) and the per-amplifier
tuning files (bin) that the snd_cs35l54(4) driver downloads at attach.
The files come from linux-firmware and are installed as raw files under
/boot/firmware/cirrus/, where firmware(9) loads them on demand.
The cs35l54 flavor covers the CS35L54 platforms listed in
linux-firmware, such as the HP ZBook Ultra G1a.
Reviewed by: manu, christos
Pull Request: https://ron-dev.freebsd.org/FreeBSD/ports/pulls/20
secure: Add ssh-sk-client to all consumers of libssh
These all failed to link with ld.bfd used by GCC due to
Fssh_sshsk_sign being an unresolved symbol.
Fixes: 65d8491719bb ("secure: Adapt Makefile to ssh-sk-client everywhere")
(cherry picked from commit a098111a28ed59e1ab1101ad09913f0235ebd28f)
drm/amdgpu: bounds check ATOM IIO table parsing
From Lijo Lazar
226a362f0dbb9046cf19082a9df99a0e6733a55e in linux-6.18.y/6.18.65
be88697602238c3dcb47bbc2db1eef923f63e78b in mainline linux
drm/amdgpu: Print full vbios info
From Lijo Lazar
1aefcbe6f20e8aa9b5112aab2c2b5ab8cb0c7472 in linux-6.18.y/6.18.65
4fd7b724a87a4051401ee2ed64c26c9249582040 in mainline linux
drm/amd: Add correct prefix for VBIOS message
From Mario Limonciello
f6008ac99237993362b96384cd3b944af5206d0f in linux-6.18.y/6.18.65
e6c7ebeaba4080562e71a59a788ac90b41e09240 in mainline linux
[clang-format] Fix InsertBraces rebinding an else in a preprocessor branch (#239414)
Don't insert braces around a body ending in an `if` whose `else` may
appear in a preprocessor branch skipped in the current formatting pass.
Inserting those braces can attach the `else` to a different `if` or
leave it without a matching `if`.
Fixes #239332.
drm/amd/pm: bound SCLK FCW range entries to the table size
From Hari Mishal
5ad40ed9d6888cc4828808cf49bdf58ec5f48290 in linux-6.18.y/6.18.65
f35aa5c77f5fca20fc269d6221df19c7b96704a5 in mainline linux
tarfs: tests: Increase timeout (again)
Bump the timeout value (a little more), to avoid cutoff on emulated
architectures on ci.freebsd.org.
Reported by: Jenkins
Fixes: 47015e454661 ("tests: Increase timeout")
MFC after: 3 days
(cherry picked from commit a551b0524953cbfa4f1035c6d968623e64f4436a)
tarfs: tests: Increase timeout (again 2)
Bump the timeout value (for the third time), to avoid cutoff on emulated
architectures on ci.freebsd.org. One of the runners will take
considerably more time to complete this test.
Reported by: Jenkins
Fixes: a551b0524953 ("tarfs: tests: Increase timeout (again)")
MFC after: 3 days
(cherry picked from commit a4f0a60e05293f3f517324f3ebc41046a79a9feb)
pf tests: give rules_counter:4G more time
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 8217075f9ecb12fa9a4cf746541b9d3e1dc57e79)
drm/amd/display: Reset DET of HUBPs without a plane before outstanding updates
From Roman Li
f7426011a30947397fd49cf6ac482efc782640aa in linux-6.18.y/6.18.65
f3afbf7d832ab138655afc96bd42226775d03ce7 in mainline linux