[AMDGPU] Do not use s_delay_alu instskip to skip inline asm (#244627)
We cannot reliably count the number of instructions in an inline asm, so
do not include one in an instskip region. Emit a separate s_delay_alu
after it instead.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Mk/Uses/electron.mk: Refactor scripts for rebuilding node modules for electron
With pnpm, changing into submodules directory and executing rebuild
command does not work. Instead, execute rebuild command with specified
node modules from top directory.
Coroutines: Only invalidate analyses of lowered functions in CoroEarly
CoroEarly invalidated every function analysis whenever the module declared
coroutine intrinsics. Only invalidate the functions it modified, and the
callers of functions which had noalias removed.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[IPSCC] Mark byval capture as Overdefined
ptr byval reuse the original pointer identity. Any capture on ptr
byval can easily cause miscompilation as taking reference on pointer
is always considered as the same. Therefore, we put this in
OverDefined by default.
Take the added test as an example. `icmp eq ptr %p, @g` in
`cmp_byval(@g)` is always considered as the same identity in IPSCCP,
which is a miscompiliation.
EarlyCSE and InstCombine should be able to handle byval and ptr
elimination easily. So we don't add more thing to LatticeValue here.
Assisted-by: Claude # Test
OpenMPOpt: Invalidate function analyses individually
Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[llvm] Remove write-only private member variables (NFC) (#244811)
This patch removes private member variables across llvm/ that are
assigned to but never read, along with their assignments.
Assisted-by: Antigravity
OpenMPOpt: Invalidate function analyses individually
Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
ConstantMerge: Preserve CFG analyses (#244817)
ConstantMerge only changes global variables, so it does not need to
invalidate every function analysis.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[RISCV] Remove RVE specific array from getArgGPRs by slicing the front of the full array. (#244770)
The RVE array is a prefix of the full array so we can take the front. This
requires hardcoding the sizes, but these arrays aren't expected to
change so I don't think that's a maintenance issue.
[Target] Move function definitions out of anonymous namespaces (#244814)
The coding standards say the following:
> Make anonymous namespaces as small as possible, and only use them for
> class declarations.
This also makes these files compliant with the
llvm-prefer-static-over-anonymous-namespaces clang-tidy check.
net/libpfctl: drop stale 15.1 distfile override
The local override mapped OSREL 15.1 to libpfctl-15.0_4.tar.gz, which
is not in distinfo, so the checksum step failed. Upstream now ships
libpfctl-15.1_4.tar.gz, so remove the override to match FreeBSD ports.
FunctionAttrs: Only invalidate analyses of changed functions in norecurse LTO inference
NoRecurseLTOInferencePass only adds norecurse, so invalidate only the
changed functions and their direct callers instead of every function
analysis.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[mlir][XeGPU] Lower multi_reduction over a unit dim as an elementwise combine (#244005)
Lower a vector.multi_reduction over a unit dim to an elementwise combine
with the accumulator in SgToLaneDistribute, fixing out-of-bounds slices
for tiles like vector<1x8x16> [0] that blocking produces since #240592.
assisted-by-claude
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Merge tag 'drm-fixes-2026-11-21' of https://gitlab.freedesktop.org/drm/kernel
Pull drm fixes from Dave Airlie:
"Weekly fixes, around the usual size, though it looks like vmwgfx got
hit with a lot of analysis and has a bunch of validation fixes.
nouveau fixes for a 7.3 regression.
I know of one open i915 7.3 regressions that hopefully a fix will land
next week. Otherwise amdgpu and xe have the most with a scattering for
others.
core:
- syncobj: Limit allocations
- vblank: Resolve deadlock in timer
amdgpu:
- GPUVM fixes
- SMU 8 fix
[95 lines not shown]
ConstantMerge: Preserve CFG analyses
ConstantMerge only changes global variables, so it does not need to
invalidate every function analysis.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Diagnose [[clang::counted_by]] after the type specifiers outside a field
int [[clang::counted_by(n)]] *a; outside a field was silently dropped.
Assisted-by: Opus 5.5
[mlir][vector] Keep the vector.mask pass-thru when dropping unit dims of a read (#243710)
`TransferReadDropUnitDimsPattern` rewrites a `vector.transfer_read`
inside `vector.mask` into a rank-reduced read and mask, but dropped the
pass-thru of the `vector.mask`. The masked-off lanes then got the
padding: for a `vector<3x2x1xf32>` read with mask `[2, 2, 1]` and
pass-thru `9`, the last row came out `0`.
The pass-thru is now shape-cast to the reduced type and kept.
`-lower-vector-mask` can't lower a pass-thru on `transfer_read` yet, so
such IR now stays unlowered instead of lowering to wrong values.
Tested by `@transfer_read_and_vector_rank_reducing_masked_passthru`.
Part of #227821.
Assisted-by: Claude