LLVM/project 59a7bd1 — bolt/lib/Target/AArch64 AArch64MCSymbolizer.cpp, bolt/test/AArch64 constant-island-clone-adr-reloc.s

[BOLT][AArch64] Clone constant islands for ADR with relocation (#240465)

BOLT skips the relocation of an LDR literal, so its target goes through
handleAddressRef(), which clones another function's constant island
unless with --clone-constant-island=0 or that the constand island has
dynamic relocation. An ADR with R_AARCH64_ADR_PREL_LO21 would use its
relocation instead and always referenced the original constant island.

We now treat these two the same by symbolizing such an ADR from its
PC-relative value during disassembling, so the decision on whether to
clone the referenced constant island can be made the same way.
DeltaFile
+54-0bolt/test/AArch64/constant-island-clone-adr-reloc.s
+10-2bolt/lib/Target/AArch64/AArch64MCSymbolizer.cpp
+64-22 files

LLVM/project 7472be2 — bolt/include/bolt/Core DIEBuilder.h, bolt/lib/Core DIEBuilder.cpp

[BOLT][DWARF] Keep rewritten locexpr record with base type reference (#242064)

Some DWARF location expressions contain both an address index and a
reference to a type DIE, e.g. "DW_OP_addrx 128, DW_OP_convert <int>".
BOLT updates them in two steps:

1. DWARFRewriter replaces the address index with the index of the
address in the new .debug_addr.

2. Later, once the final DIE offsets are known, DIEBuilder fills in the
offset of the type DIE.

Step 2 rebuilt the expression from the input file, so it undid step 1
and put the old address index back. The index is a ULEB128, so the old
and new values can take a different number of bytes. The expression then
no longer had the size the unit was laid out with, so the unit length
was wrong and tools reading the DWARF lost every unit after it.

Make step 2 start from the expression written by step 1. For that, step

    [4 lines not shown]
DeltaFile
+88-0bolt/test/X86/dwarf5-locexpr-addrx-reference.s
+32-15bolt/lib/Core/DIEBuilder.cpp
+3-4bolt/include/bolt/Core/DIEBuilder.h
+123-193 files

LLVM/project 5d426e1 — mlir/lib/Dialect/XeGPU/Transforms XeGPULayoutImpl.cpp, mlir/test/Dialect/XeGPU propagate-layout.mlir propagate-layout-inst-data.mlir

[MLIR][XeGPU] Reuse a consumer slice layout that slices other dims in multi_reduction (#245361)

[MLIR][XeGPU] Reuse a consumer slice layout that slices other dims in
multi_reduction

The multi_reduction layout rules reuse the consumer's slice parent only
when the slice dims equal the reduction dims. A consumer layout often
slices other dims, e.g. after a broadcast and a transpose: the reduction
removes dim 1 while the consumer is slice<P, dims = [0]>. That layout is
the same as slice<P', dims = [1]>, where P' is P with its dims permuted
so that the sliced dims land on the reduction dims and the kept dims
stay in order.

assisted-by-claude

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+44-19mlir/lib/Dialect/XeGPU/Transforms/XeGPULayoutImpl.cpp
+40-0mlir/test/Dialect/XeGPU/propagate-layout-inst-data.mlir
+3-3mlir/test/Dialect/XeGPU/propagate-layout.mlir
+87-223 files

LLVM/project 6848dd7 — llvm/lib/Passes PassBuilderPipelines.cpp, llvm/test/Other opt-pipeline-attributor-enable.ll

[Passes] Honor module Attributor options in FullLTO (#230759)

Run the full Attributor after WPD in FullLTO when enabled. Keep
module-light before WPD; default behavior is unchanged.
DeltaFile
+8-0llvm/test/Other/opt-pipeline-attributor-enable.ll
+3-0llvm/lib/Passes/PassBuilderPipelines.cpp
+11-02 files

LLVM/project b6b8174 — llvm/lib/Target/RISCV RISCVTargetMachine.h RISCVTargetMachine.cpp

RISCV: Include the target ABI in the subtarget key

The subtarget depends on the target-abi module flag, so modules with
different ABIs need different subtargets.

Assisted-by: Claude
DeltaFile
+5-4llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
+2-1llvm/lib/Target/RISCV/RISCVTargetMachine.h
+7-52 files

LLVM/project 1a96a94 — clang/include/clang/Lex Token.h, clang/lib/Lex Pragma.cpp

[clang] Guard identifier reads in pragma handlers (#230927)

Nested `_Pragma` or Microsoft `__pragma` expressions can produce
annotation tokens in an enclosing pragma's arguments. This patch fixes
crashes when these tokens are processed as arguments or used to
construct diagnostics, and improves error recovery for nested pragmas.

``` cc
#pragma vtordisp(push, _Pragma("weak foobar"))
```

After the inner `_Pragma` is processed, the enclosing pragma receives an
annotation where it expects a mode argument. Similar cases occur when
arguments are buffered and parsed later.

Previously, these paths called `getIdentifierInfo()` and then checked
whether the result was null. The assertion occurs inside the getter, so
checking its return value cannot prevent the crash.


    [5 lines not shown]
DeltaFile
+113-0clang/test/Parser/pragma-nested-annotation.c
+27-26clang/lib/Parse/ParsePragma.cpp
+31-0clang/test/Parser/pragma-nested-annotation-target.c
+13-14clang/lib/Lex/Pragma.cpp
+9-0clang/include/clang/Lex/Token.h
+5-0clang/test/FixIt/fixit-pragma-attribute.cpp
+198-402 files not shown
+203-408 files

LLVM/project 20598dc — llvm/lib/Target/X86 X86TargetMachine.h X86TargetMachine.cpp

X86: Include the stack alignment override in the subtarget key

The subtarget depends on the override-stack-alignment module flag, so
modules with different values need different subtargets.

Assisted-by: Claude
DeltaFile
+8-4llvm/lib/Target/X86/X86TargetMachine.cpp
+3-1llvm/lib/Target/X86/X86TargetMachine.h
+11-52 files

LLVM/project 019c225 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp

LoongArch: Include the target ABI in the subtarget key

The subtarget depends on the target-abi module flag, so modules with
different ABIs need different subtargets.

Assisted-by: Claude
DeltaFile
+2-2llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+2-21 files

LLVM/project baaf544 — llvm/lib/Target/Mips MipsTargetMachine.h MipsTargetMachine.cpp

Mips: Include the stack alignment override in the subtarget key

The subtarget depends on the override-stack-alignment module flag, so
modules with different values need different subtargets.

Assisted-by: Claude
DeltaFile
+9-4llvm/lib/Target/Mips/MipsTargetMachine.cpp
+3-1llvm/lib/Target/Mips/MipsTargetMachine.h
+12-52 files

LLVM/project 5e5e2fa — clang/lib/CIR/CodeGen CIRGenFixedPointBuilder.h, clang/test/CIR/CodeGen fixed-point-conversions.cpp

[CIR] Guard full-width shift in CIRGenFixedPointBuilder (#244504)

Casting unsigned _Fract to an integer shifts by its full width, since
scale == width.

Follows https://github.com/llvm/llvm-project/pull/239969.
DeltaFile
+8-18clang/test/CIR/CodeGen/fixed-point-conversions.cpp
+6-1clang/lib/CIR/CodeGen/CIRGenFixedPointBuilder.h
+14-192 files

LLVM/project 1d334b8 — llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer extract-many-users-buildvector.ll alternate-cmp-swapped-pred-parent.ll

[SLP]Choose the cheapest nodes for gather shuffles

The first matching node is not always the cheapest one. All candidate
nodes are collected per register part, the gather cost picks the
cheapest choice and codegen emits the same one. Lanes of vectorized
scalars with the same VF are priced as shuffles instead of inserts.

Assisted-by: Cursor

Pull-request: https://github.com/llvm/llvm-project/pull/243943
Reviewers: MrSidims, RKSimon, bababuck
Reviewed-by: bababuck
DeltaFile
+656-195llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+57-29llvm/test/Transforms/SLPVectorizer/reused-buildvector-matching-vectorized-node.ll
+49-23llvm/test/Transforms/SLPVectorizer/shuffle-multivector.ll
+15-28llvm/test/Transforms/SLPVectorizer/alternate-cmp-swapped-pred-parent.ll
+21-19llvm/test/Transforms/SLPVectorizer/extract-many-users-buildvector.ll
+21-17llvm/test/Transforms/SLPVectorizer/X86/split-vectorize-gathered-def-after-use.ll
+819-31137 files not shown
+994-46643 files

LLVM/project bddf68f — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV/GlobalISel/irtranslator vec-ext.ll

[RISCV][GISel] Support scalable vector zext and sext in the IRTranslator (#248359)

Allow scalable vector zext and sext in
RISCVTargetLowering::fallBackToDAGISel. The legalizer, register bank
selection and instruction selection already handle G_ZEXT and G_SEXT on
scalable vectors. Extends from a mask select to vmerge.vim now that
constant splats and SplatPat_simm5 are supported.

Part of #246831
DeltaFile
+263-0llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/vec-ext.ll
+2-1llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+265-12 files

FreeBSD/ports 4d2be88 — x11/swaylock Makefile, x11/swaylock-effects Makefile

x11/swaylock: drop unused pango dependency after 326a2287ad29

Warning: you might not need LIB_DEPENDS on libpango-1.0.so

https://github.com/swaywm/swaylock/commit/b87e2a491668
DeltaFile
+2-2x11/swaylock/Makefile
+1-1x11/swaylock-plugin/Makefile
+1-1x11/swaylock-effects/Makefile
+4-43 files

FreeBSD/ports a8538d1 — devel/py-ty Makefile Makefile.crates

devel/py-ty: Update to 1.1.0

Changelog: https://github.com/astral-sh/ty/blob/1.1.0/CHANGELOG.md

Reported by:    Repology
DeltaFile
+21-39devel/py-ty/distinfo
+9-18devel/py-ty/Makefile.crates
+1-1devel/py-ty/Makefile
+31-583 files

LLVM/project 9f98606 — mlir/lib/Dialect/AMDGPU/Transforms MaskedloadToLoad.cpp, mlir/test/Dialect/AMDGPU maskedload-to-load.mlir

[mlir][AMDGPU] Keep alignment when lowering masked loads and stores (#221308)

The `amdgpu-maskedload-to-load` patterns rebuild a `vector.maskedload`
as `vector.load` (and a full-mask `vector.maskedstore` as
`vector.store`) from the original base and indices, but do not forward
the `alignment` attribute. The lowered op then falls back to the
element alignment in `convert-vector-to-llvm`:

```mlir
%0 = vector.maskedload %mem[%i, %i], %mask, %pass alignment = 16 : memref<8x8xf16>, vector<4xi1>, vector<4xf16> into vector<4xf16>
```

```
// before: llvm.load %p {alignment = 2 : i64}  : !llvm.ptr -> vector<4xf16>
// after:  llvm.load %p {alignment = 16 : i64} : !llvm.ptr -> vector<4xf16>
```

The rewritten access uses the same base, indices and vector type, so
the alignment the user asserted on the masked op still holds. Pass it

    [4 lines not shown]
DeltaFile
+44-0mlir/test/Dialect/AMDGPU/maskedload-to-load.mlir
+4-2mlir/lib/Dialect/AMDGPU/Transforms/MaskedloadToLoad.cpp
+48-22 files

FreeBSD/ports e230666 — x11/swaylock-plugin Makefile

x11/swaylock-plugin: drop unused PIXBUF option after f84b43d53f6e

-  0x0000000000000001 (NEEDED)     Shared library: [libgdk_pixbuf-2.0.so.0]
-  0x0000000000000001 (NEEDED)     Shared library: [libgobject-2.0.so.0]

https://github.com/mstoeckl/swaylock-plugin/commit/716593748d20
DeltaFile
+2-0x11/swaylock-plugin/Makefile
+2-01 files

FreeBSD/src de89d4a — etc/mtree BSD.tests.dist

BSD.tests.dist: Add entry for bsdconfig

Fixes:          9ffe2919e6b6 (bsdconfig: Resolve GEOM ids and names without scanning)
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-0etc/mtree/BSD.tests.dist
+2-01 files

FreeBSD/ports e70b07b — sysutils/bhyvemgr pkg-plist distinfo

sysutils/bhyvemgr: Update to 2.2.0

- Migrate to new LICENSE framework

ChangeLog at:   https://github.com/alonsobsd/bhyvemgr/releases/tag/v2.2.0
DeltaFile
+3-3sysutils/bhyvemgr/distinfo
+3-3sysutils/bhyvemgr/Makefile
+3-0sysutils/bhyvemgr/pkg-plist
+9-63 files

FreeBSD/ports 8201d38 — sysutils/bhyvemgrd Makefile distinfo

sysutils/bhyvemgrd: Update to 1.3.0

- Migrate to new LICENSE framework

ChangeLog at:   https://github.com/alonsobsd/bhyvemgrd/releases/tag/v1.3.0
DeltaFile
+3-3sysutils/bhyvemgrd/distinfo
+2-2sysutils/bhyvemgrd/Makefile
+5-52 files

FreeBSD/ports f84b43d — x11/swaylock-plugin Makefile pkg-descr

x11/swaylock-plugin: update to 1.8.8

Changes:        https://github.com/mstoeckl/swaylock-plugin/releases/tag/v1.8.8
Reported by:    GitHub (watch releases)
DeltaFile
+3-3x11/swaylock-plugin/distinfo
+2-1x11/swaylock-plugin/pkg-descr
+1-1x11/swaylock-plugin/Makefile
+6-53 files

LLVM/project 8d596ec — llvm/test/CodeGen/X86 vector-interleaved-store-i64-stride-7.ll vector-deinterleave8-i64.ll

[X86] Enable SlotIndexes compaction by default

Compacting SlotIndexes before greedy allocation drops the entries of
erased instructions, so live range sizes and instruction distances
reflect the code being allocated rather than how much was erased
before it. AMDGPU has done this since #235806; do the same for X86.

Codegen changes only through allocation: no new crashes, verifier
errors or allocation failures in the lit suites, including
EXPENSIVE_CHECKS, and a stage-2 build of LLVM, clang and lld with
-verify-machineinstrs passes its own tests. On llvm-test-suite at -O3,
spills drop 0.3% and .text 0.06%, with compile time unchanged.

Most test updates are regenerated checks. misched-matmul now inserts
20 spills instead of 24. live-debug-vars-stale-slotindexes.mir gets
one more use of %27 so that accumulate_fit still reaches the stale
index path it was written for. reloc-opt.ll gets an NF add that keeps
its source live, because compaction compresses the existing one to the
legacy form. inline-spiller-hoist-folded-copy.ll gets four empty asm

    [2 lines not shown]
DeltaFile
+20,796-20,889llvm/test/CodeGen/X86/vector-interleave7-i16.ll
+17,854-17,989llvm/test/CodeGen/X86/vector-interleave7-i32.ll
+17,166-17,229llvm/test/CodeGen/X86/vector-interleave6-i16.ll
+15,403-15,465llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-7.ll
+13,433-13,434llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+13,329-13,243llvm/test/CodeGen/X86/vector-interleaved-store-i64-stride-7.ll
+97,981-98,249517 files not shown
+672,294-674,745523 files

LLVM/project 11a7449 — llvm/lib/Target/X86 X86ISelLoweringCall.cpp, llvm/test/CodeGen/X86 dynamic-regmask-preserve-all.ll dynamic-regmask-preserve-most.ll

[X86] Clear _all_ register aliases in dynamic call RegMasks for preserve_most/all (#241595)

Previously, the code only removed _subregisters_ (inclusively) from the
register mask when removing registers for CCs like `preserve_most` or
`preserve_all`.

But when we do `MRI.disableCalleeSavedRegister`, it removes aliases
including superregisters and their aliases. Leaving the superregisters
marked as preserved can cause sibling subregisters to get clobbered
across `preserve_most` calls:

https://cpp.compiler-explorer.com/z/GjxerTYnz

The fix is to clear all subregisters of the root superregisters of the
disabled register.

Assisted-by: Antigravity with Gemini
DeltaFile
+21-0llvm/test/CodeGen/X86/dynamic-regmask-preserve-most.ll
+12-7llvm/lib/Target/X86/X86ISelLoweringCall.cpp
+10-0llvm/test/CodeGen/X86/dynamic-regmask-preserve-all.ll
+43-73 files

FreeBSD/src f260c85 — sys/netpfil/ipfw ip_fw_nat.c, tests/sys/netpfil/ipfw nat44_config.c

ipfw_nat: Report a redirect that cannot be set up

nat44_config() ignores the error from add_redir_spool_cfg(), which
stops at the first redirect it cannot set up: one with an unknown mode,
a port redirect without ports or with a protocol other than TCP, UDP or
SCTP, or one for which libalias cannot allocate a link.  That redirect
and the ones after it are dropped silently, but the instance keeps the
redirect count of the request, so "ipfw nat N show config" reports more
redirects than it returns and ipfw(8) misreads the reply ("unknown redir
mode").  A port range that runs out of memory partway also leaves its
first links in libalias.

Return the error, count only the redirects that are set up, and delete
the links of a port range that fails.  As before, the instance stays
installed with the redirects ahead of the failed one.  Add a
nat44_config test case for a redirect without ports.

Reviewed by:            maxim
Fixes:                  d6164b77f8b7 ("Make ipfw_nat module use IP_FW3 codes.")

    [3 lines not shown]
DeltaFile
+55-0tests/sys/netpfil/ipfw/nat44_config.c
+11-6sys/netpfil/ipfw/ip_fw_nat.c
+66-62 files

LLVM/project 7dda42e — llvm/include/llvm/Transforms/Scalar Float2Int.h, llvm/lib/Passes PassRegistry.def PassBuilder.cpp

Float2Int: Replace -float2int-max-integer-bw cl::opt with pass parameter

Migrate the pass-specific command-line option to a new pass manager
pass parameter, exposed as float2int<max-integer-bw=N>.

Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+24-0llvm/lib/Passes/PassBuilder.cpp
+9-0llvm/lib/Transforms/Scalar/Float2Int.cpp
+9-0llvm/include/llvm/Transforms/Scalar/Float2Int.h
+7-0llvm/test/Transforms/Float2Int/pass-param-parse-errors.ll
+4-1llvm/test/Other/new-pm-print-pipeline.ll
+4-1llvm/lib/Passes/PassRegistry.def
+57-21 files not shown
+58-37 files

LLVM/project 073c89b — llvm/lib/MC ELFObjectWriter.cpp

[MC] Only treat STT_SPARC_REGISTER as a register symbol for SPARC V9 (#248730)

STT_SPARC_REGISTER is STT_LOPROC, which other targets can use for their
own symbol type. Only give it the SPARC register symbol handling in
the ELF writer when the machine is EM_SPARCV9.

Reported by nvjle in
https://github.com/llvm/llvm-project/pull/246970#discussion_r4792717748

Assisted-by: Claude Opus 5.5
DeltaFile
+7-2llvm/lib/MC/ELFObjectWriter.cpp
+7-21 files

LLVM/project 6a8c193 — llvm/include/llvm/Support PGOOptions.h, llvm/include/llvm/Transforms/IPO SampleProfile.h

Thread SharedSampleProfile through PGOOptions and SampleProfileLoader.

Parallel pass pipelines such as rustc codegen workers need a way to pass a
pre-parsed `SharedSampleProfile` into `SampleProfileLoader` without reopening
the profile per module. Add an optional `SharedSampleProfile` field to
`PGOOptions` (asserting `Action == SampleUse` in `PGOOptions::resolve()`) and
forward it through `SampleProfileLoaderPass` to `SampleProfileReader::create`
and `takeSharedProfileSymbolList()`.
DeltaFile
+20-8llvm/lib/Transforms/IPO/SampleProfile.cpp
+13-9llvm/lib/Passes/PassBuilderPipelines.cpp
+9-1llvm/include/llvm/Transforms/IPO/SampleProfile.h
+6-0llvm/include/llvm/Support/PGOOptions.h
+3-0llvm/lib/Support/PGOOptions.cpp
+51-185 files

LLVM/project 83682df — llvm/include/llvm/Transforms/IPO SampleProfileMatcher.h, llvm/lib/Transforms/IPO SampleProfile.cpp

Use const ProfileSymbolList in SampleProfileLoader and SampleProfileMatcher.

Neither class mutates the symbol list. Making it const lets SampleProfileLoader
switch to SampleProfileReader::takeSharedProfileSymbolList(), which returns a
const pointer so a SharedSampleProfile can share it across parallel modules.
DeltaFile
+2-2llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
+1-1llvm/lib/Transforms/IPO/SampleProfile.cpp
+3-32 files

LLVM/project 1e66b90 — clang/lib/CodeGen BackendUtil.cpp, flang/lib/Frontend FrontendActions.cpp

Support struct-style initialization for PGOOptions.

Constructing `PGOOptions` previously required 10 positional arguments with
empty placeholder strings, making new fields noisy to add. Add default member
initializers, a default constructor, and `PGOOptions::resolve()` (called by
`PassBuilder`), migrate callers, and remove the positional constructor.
DeltaFile
+49-38clang/lib/CodeGen/BackendUtil.cpp
+26-29flang/lib/Frontend/FrontendActions.cpp
+31-16llvm/tools/opt/NewPMDriver.cpp
+21-17llvm/lib/LTO/LTOBackend.cpp
+11-14llvm/include/llvm/Support/PGOOptions.h
+11-11llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+149-1253 files not shown
+159-1409 files

LLVM/project 647772e — llvm/include/llvm/ProfileData SampleProfReader.h, llvm/lib/ProfileData SampleProfReader.cpp

Support context-sensitive ExtBinary profiles in SharedSampleProfile.

Context-sensitive ExtBinary profiles store callsite context frames in
`SecCSNameTable` and hash them lazily into `MD5SampleContextTable`, which
previously rejected sharing. Share immutable `SecCSNameTable` data through
`SampleProfileReaderBinary::CSNameTable`, populate the CS atomic MD5 vector
while guarding section ordering against `SecProfSummary`, and exercise
concurrent CS and non-CS readers under TSAN.
DeltaFile
+151-12llvm/unittests/ProfileData/SampleProfTest.cpp
+34-12llvm/lib/ProfileData/SampleProfReader.cpp
+1-0llvm/include/llvm/ProfileData/SampleProfReader.h
+186-243 files

LLVM/project f339681 — lldb/source/Commands CommandObjectThread.cpp, lldb/source/Core Debugger.cpp

[lldb] Print the thread status in `thread select` (#248714)

Since c3faa1957735, `thread select` has not printed the new thread's
status itself. It broadcasts a thread-selected event, and the default
event handler prints the status when it receives it. `frame select`
prints its result directly.

The command result of `thread select` is therefore empty. A caller of
SBCommandInterpreter::HandleCommand can neither capture nor suppress
the status.

The event handler thread also prints while the next command runs. In a
breakpoint command, `thread select` followed by `bt` has both threads
format the same Objective-C argument, which sets up the language
runtime on first use, and LLDB can crash.

Print the status in the command, as `frame select` does, and stop
handling the event in the default event handler. Other clients still
receive it.

    [6 lines not shown]
DeltaFile
+35-0lldb/test/Shell/Commands/command-thread-select-breakpoint-command.test
+2-4lldb/source/Core/Debugger.cpp
+4-1lldb/source/Commands/CommandObjectThread.cpp
+3-1lldb/test/API/commands/thread/select/TestThreadSelect.py
+44-64 files