LLVM/project 7e39d73 — llvm/lib/Transforms/Scalar InferAddressSpaces.cpp, llvm/test/Transforms/InferAddressSpaces/AMDGPU constexpr-two-casts-one-call.ll

[InferAddressSpaces] Use a new value map for each rewritten constant

When the pass rewrites a flat constant expression, it remaps the
instructions that use it through other constant expressions with a
`ValueMapper`. All rewritten constants shared one map, and the mapper
caches every constant that it visits, including the ones that it maps to
themselves. So when one instruction uses two rewritten constants, the
remap for the first one caches the part with the second one as
unchanged, and the remap for the second one reuses that entry. For
example, if a call has `addrspacecast`s of two flat pointers that are
based on the same `addrspace(3)` global, only one argument is folded.

This PR uses a new map for each rewritten constant.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+25-0llvm/test/Transforms/InferAddressSpaces/AMDGPU/constexpr-two-casts-one-call.ll
+6-2llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
+31-22 files

LLVM/project 61aa7c0 — llvm/lib/Transforms/Scalar InferAddressSpaces.cpp, llvm/test/Transforms/InferAddressSpaces optnone-func-unchanged.ll

[InferAddressSpaces] Don't replace uses in other functions

`performPointerReplacement` visits every use of a value in the postorder
list. When the value is a constant expression, some of these uses can be
in other functions. It already skipped such uses, but only after
`replaceIfSimplePointerUse`, so when the pass ran on one function, it
could still rewrite a load, store, `atomicrmw`, or `cmpxchg` in another
function, even in an `optnone` function.

This PR skips a use in another function before any replacement, like
#70611 did for the other users of a constant.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+16-0llvm/test/Transforms/InferAddressSpaces/optnone-func-unchanged.ll
+3-3llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
+19-32 files

FreeBSD/src 58e5c5c — tests/sys/capsicum capsicum-test-main.cc Makefile

tests/sys/capsicum: restore test coverage with root user

This change builds capsicum_test and installs/runs it as an unprivileged
user ("tests" in vanilla FreeBSD) and root.

This required adjusting logic in the Makefile in order to build two
binaries with the same sources and running them as separate binaries.

Moreover, in order to restore coverage and ensure that some tests which
require `other_uid` (typically specified via `-u` on the CLI with the
test program) don't fail, become the "tests" user when run as root. This
technically doesn't honor unprivileged_user property in kyua.conf: the
property needs to be passed via a command-line parameter to the test
program.

MFC after:      1 week
Reported by:    markj
Fixes:          3fb03fb35b20 ("[tests] switch GoogleTest tests ...")


    [2 lines not shown]
DeltaFile
+18-9tests/sys/capsicum/Makefile
+24-0tests/sys/capsicum/capsicum-test-main.cc
+42-92 files

FreeBSD/src 04c4b20 — tests/sys/capsicum capability-fd.cc fexecve.cc

capsicum-test: make the code WARNS=6 clean

Make the code WARNS=6 clean by doing the following:
- Renaming variables (-Wshadow).
- Use memcpy instead of assigning the result of CMSG_DATA to a variable
  (-Wcast-align).
- Wrap some macros with do-while(0) to avoid variable collisions
  (-Wshadow).
- Push one of the TRACE statements up by 1 layer to avoid a collision
  between 2 calls of TRACE via the same overarching macro.

This was needed in order for the code to build properly with D61066,
since the code was not compiling with WARNS set to 3 at the testcase
level.

MFC after: 1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D61080
DeltaFile
+35-35tests/sys/capsicum/socket.cc
+26-10tests/sys/capsicum/capsicum-test.h
+15-15tests/sys/capsicum/sctp.cc
+8-7tests/sys/capsicum/capsicum-freebsd.h
+6-6tests/sys/capsicum/fexecve.cc
+6-4tests/sys/capsicum/capability-fd.cc
+96-773 files not shown
+107-829 files

LLVM/project 8cdf118 — lldb/test/API/functionalities/process_group TestChangeProcessGroup.py, lldb/test/API/python_api/hello_world TestHelloWorld.py

[lldb][test] Report the attach error in API tests that attach by pid (#239412)

`test_module_is_file_backed`, `test_with_attach_to_process_with_id_api`
and `test_setpgid` attach with `target.AttachToProcessWithID`, then
`self.assertTrue(error.Success() and process, PROCESS_IS_VALID)`, when
the attach fails, the failure names no cause, the text in `error` is
dropped

```
[2026-11-05T21:51:50.444Z] Traceback (most recent call last):
[2026-11-05T21:51:50.444Z]   File "/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/lldb/test/API/python_api/sbmodule/TestSBModule.py", line 106, in test_module_is_file_backed
[2026-11-05T21:51:50.444Z]     self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
[2026-11-05T21:51:50.444Z] AssertionError: False is not true : Process is valid
```

Use `self.assertSuccess(error)` instead so the attach error can be seen.
DeltaFile
+1-1lldb/test/API/python_api/sbmodule/TestSBModule.py
+1-1lldb/test/API/python_api/hello_world/TestHelloWorld.py
+1-1lldb/test/API/functionalities/process_group/TestChangeProcessGroup.py
+3-33 files

FreeBSD/src ab6a3f1 — tests/sys/capsicum procdesc.cc capability-fd.cc

Revert "capsicum-test: make the code WARNS=6 clean"

The wrong patch got committed somehow from one of my git clones. Revert the
change so I can reapply the correct patch >:(.

This reverts commit 5bae837f316ca96b69c61bae15bd61da76e7f3ea.
DeltaFile
+29-29tests/sys/capsicum/socket.cc
+11-27tests/sys/capsicum/capsicum-test.h
+12-12tests/sys/capsicum/sctp.cc
+6-6tests/sys/capsicum/fexecve.cc
+4-6tests/sys/capsicum/capability-fd.cc
+2-4tests/sys/capsicum/procdesc.cc
+64-842 files not shown
+67-858 files

FreeBSD/src 83fc6f5 — tests/sys/capsicum capsicum-test-main.cc Makefile

Revert "tests/sys/capsicum: restore test coverage with root user"

The wrong patch was applied for D61080. Both changes must go.

This reverts commit dda15b669d021346682009f38acc6db2639fb99f.
DeltaFile
+9-18tests/sys/capsicum/Makefile
+0-24tests/sys/capsicum/capsicum-test-main.cc
+9-422 files

LLVM/project 70286d0 — llvm/lib/CodeGen CodeGenPrepare.cpp, llvm/test/Transforms/CodeGenPrepare/X86 fold-urem-loop-inc-profile.ll

[CGP] Mark profiles in foldURemOfLoopIncrement

Mark these as unknown given we are creating a select with a value
conditioned on runtime variables that we are not easily able to infer at
compile time.

Reviewers: mtrofin

Pull Request: https://github.com/llvm/llvm-project/pull/238967
DeltaFile
+34-0llvm/test/Transforms/CodeGenPrepare/X86/fold-urem-loop-inc-profile.ll
+2-0llvm/lib/CodeGen/CodeGenPrepare.cpp
+36-02 files

LLVM/project ed2e406 — llvm/lib/Transforms/Utils BypassSlowDivision.cpp, llvm/test/Transforms/CodeGenPrepare/X86 bypass-slow-div-profile.ll

[CGP] Mark branch weights unknown for BypassSlowDivision

The branch weights are dependent on the value distribution of the
divisor/dividend, so we cannot know them at compile time. Just mark the
weights explicitly unknown.

Reviewers: mtrofin

Pull Request: https://github.com/llvm/llvm-project/pull/238954
DeltaFile
+56-0llvm/test/Transforms/CodeGenPrepare/X86/bypass-slow-div-profile.ll
+5-2llvm/lib/Transforms/Utils/BypassSlowDivision.cpp
+61-22 files

LLVM/project 13d21fa — llvm/lib/Target/AMDGPU SIOptimizeExecMaskingPreRA.cpp, llvm/test/CodeGen/AMDGPU optimize-exec-mask-pre-ra-debug-limit.mir

[AMDGPU] Ignore meta instructions in pre-RA exec-copy scan limit (#237521)

Debug instructions currently count against the ten-instruction backward
scan used to fold an `exec` copy into its only non-debug user. At the
scan boundary, adding debug information can therefore retain an extra
`exec` copy. A source-level OpenCL reproducer shows the debug build
retaining an extra `s_mov_b32 ..., exec_lo`, increasing the function
size by four bytes compared with `-g0`.

Ignore meta instructions when counting the existing scan limit. Meta
instructions produce no executable output and cannot be the EXEC copy
sought by the scan. This also prevents other meta instructions, such as
`SCHED_BARRIER`, from consuming the budget.

Fixes #229042

This issue was found by a non-AI automated testing tool. AI assisted
with the analysis and development of the fix.
DeltaFile
+54-0llvm/test/CodeGen/AMDGPU/optimize-exec-mask-pre-ra-debug-limit.mir
+7-3llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
+61-32 files

LLVM/project 345bc91 — llvm/docs LFI.md, llvm/lib/Target/X86/MCTargetDesc X86MCLFIRewriter.cpp

[LFI][X86] Add memory access rewrites (#227511)

This adds memory access rewriting for the x86-64 LFI target using `%gs`
as the base register for rewrites. By using 32-bit register combined
with the sandbox base in `%gs`, memory accesses can be rewritten to be
confined to an LFI sandbox with little overhead. See the documentation
in `LFI.md` for details on exact rewrite sequences.
DeltaFile
+587-13llvm/lib/Target/X86/MCTargetDesc/X86MCLFIRewriter.cpp
+184-14llvm/docs/LFI.md
+176-0llvm/test/MC/X86/LFI/memory-errors.s
+162-0llvm/test/MC/X86/LFI/memory.s
+115-0llvm/test/MC/X86/LFI/stack.s
+74-0llvm/test/MC/X86/LFI/string.s
+1,298-276 files not shown
+1,443-5512 files

LLVM/project e622a87 — llvm/lib/Transforms/Utils LowerMemIntrinsics.cpp, llvm/test/Transforms/PreISelIntrinsicLowering/AArch64 bounded-memset.ll

[LowerMemIntrinsics] Propagate VP metadata to branch weights (#239901)

In #228420, a new transform was introduced that lowered constant range
memsets inline. Then #239159 landed to fix the profcheck failure, but
was wrong in the reasoning that there is no way to come up with branch
weights.

This patch makes a reasonable attempt at propagating branch weights from
VP metadata that will likely be attached to the memset for instrumented
PGO builds. This patch doesn't handle some cases effectively,
particularly with incomplete profile information (e.g., the top 4
buckets that we put in the VP metadata are all above the constant given
inlining exposed the range optimization). Handling those more
effectively adds considerable complexity thought that I do not think is
worth it.
DeltaFile
+52-4llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
+38-2llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/bounded-memset.ll
+90-62 files

FreeBSD/src dda15b6 — tests/sys/capsicum capsicum-test-main.cc Makefile

tests/sys/capsicum: restore test coverage with root user

This change builds capsicum_test and installs/runs it as an unprivileged
user ("tests" in vanilla FreeBSD) and root.

This required adjusting logic in the Makefile in order to build two
binaries with the same sources and running them as separate binaries.

Moreover, in order to restore coverage and ensure that some tests which
require `other_uid` (typically specified via `-u` on the CLI with the
test program) don't fail, become the "tests" user when run as root. This
technically doesn't honor unprivileged_user property in kyua.conf: the
property needs to be passed via a command-line parameter to the test
program.

MFC after:      1 week
Reported by:    markj
Fixes:          3fb03fb35b20 ("[tests] switch GoogleTest tests ...")


    [2 lines not shown]
DeltaFile
+18-9tests/sys/capsicum/Makefile
+24-0tests/sys/capsicum/capsicum-test-main.cc
+42-92 files

FreeBSD/src 5bae837 — tests/sys/capsicum procdesc.cc capability-fd.cc

capsicum-test: make the code WARNS=6 clean

Make the code WARNS=6 clean by doing the following:
- Renaming variables (-Wshadow).
- Use memcpy instead of assigning the result of CMSG_DATA to a variable
  (-Wcast-align).
- Wrap some macros with do-while(0) to avoid variable collisions
  (-Wshadow).
- Push one of the TRACE statements up by 1 layer to avoid a collision
  between 2 calls of TRACE via the same overarching macro.

This was needed in order for the code to build properly with D61066,
since the code was not compiling with WARNS set to 3 at the testcase
level.

MFC after: 1 week

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D61080
DeltaFile
+29-29tests/sys/capsicum/socket.cc
+26-10tests/sys/capsicum/capsicum-test.h
+12-12tests/sys/capsicum/sctp.cc
+6-6tests/sys/capsicum/fexecve.cc
+6-4tests/sys/capsicum/capability-fd.cc
+4-2tests/sys/capsicum/procdesc.cc
+83-632 files not shown
+84-668 files

FreeBSD/ports d25b3b7 — net/liveMedia pkg-plist Makefile

net/liveMedia: Update to 2026.11.08

https://download.live555.com/changelog.txt
DeltaFile
+3-3net/liveMedia/distinfo
+1-1net/liveMedia/pkg-plist
+1-1net/liveMedia/Makefile
+5-53 files

FreeBSD/ports 9c63133 — games/tanglet Makefile distinfo

games/tanglet: Update to 1.6.10

https://github.com/gottcode/tanglet/releases/tag/v1.6.10
DeltaFile
+3-3games/tanglet/distinfo
+1-1games/tanglet/Makefile
+4-42 files

FreeBSD/ports d09e185 — graphics/libxisf Makefile distinfo

graphics/libxisf: Update to 0.2.17

https://gitea.nouspiro.space/nou/libXISF/releases/tag/v0.2.15
https://gitea.nouspiro.space/nou/libXISF/releases/tag/v0.2.16
https://gitea.nouspiro.space/nou/libXISF/releases/tag/v0.2.17
DeltaFile
+3-3graphics/libxisf/distinfo
+1-1graphics/libxisf/Makefile
+4-42 files

FreeBSD/ports 5a94c7f — graphics/libraw Makefile distinfo

graphics/libraw: Update to 0.22.3

https://www.libraw.org/news/libraw-0-22-3-release
DeltaFile
+3-3graphics/libraw/distinfo
+1-1graphics/libraw/Makefile
+4-42 files

FreeBSD/ports b201760 — games/gottet Makefile distinfo

games/gottet: Update to 1.2.8

https://github.com/gottcode/gottet/releases/tag/v1.2.8
DeltaFile
+3-3games/gottet/distinfo
+1-1games/gottet/Makefile
+4-42 files

FreeBSD/ports 94ec4c6 — games/cutemaze Makefile distinfo

games/cutemaze: Update to 1.3.7

https://github.com/gottcode/cutemaze/releases/tag/v1.3.7
DeltaFile
+3-3games/cutemaze/distinfo
+1-1games/cutemaze/Makefile
+4-42 files

FreeBSD/ports 5700c58 — games/connectagram Makefile distinfo

games/connectagram: Update to 1.3.10

https://github.com/gottcode/connectagram/releases/tag/v1.3.10
DeltaFile
+3-3games/connectagram/distinfo
+1-1games/connectagram/Makefile
+4-42 files

LLVM/project 9f00470 — lld/MachO ICF.cpp, lld/test/MachO icf-safe-thunks-callers.s

init unique sections in icfEqClass[1] too
DeltaFile
+41-12lld/test/MachO/icf-safe-thunks-callers.s
+1-1lld/MachO/ICF.cpp
+42-132 files

LLVM/project c35f9c0 — llvm/lib/Target/AMDGPU SILoadStoreOptimizer.cpp, llvm/test/CodeGen/AMDGPU merge-tbuffer-align.ll merge-tbuffer-align.mir

AMDGPU: Check address alignment when merging TBUFFER accesses (#239852)

SILoadStoreOptimizer only checked the alignment of the immediate
offset when merging TBUFFER accesses, ignoring the rest of the
address. This could undo splitting done for alignment and cause
hangs. This is a theoretically stronger fix to piglit failures with
mesa which were previously hidden by conditioning this transform on
relaxed OOB mode.

Check the alignment of the whole address from the memory operand, and
assume each access is already aligned to its component size. Since the
buffer intrinsics don't provide any alignment information, accesses
with 8-bit or 16-bit components can no longer be merged from IR.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+190-0llvm/test/CodeGen/AMDGPU/merge-tbuffer-align.mir
+48-0llvm/test/CodeGen/AMDGPU/merge-tbuffer-align.ll
+9-5llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+247-53 files

LLVM/project db6f465 — flang/lib/Lower OpenACC.cpp, flang/test/Lower/OpenACC/Todo acc-boxchar.f90

[flang][OpenACC] Emit NYI for unsupported scalar CHARACTER mappings. (#240551)

Automatic and assumed-length scalar CHARACTER variables, as well as
fixed-length host-associated scalars, can reach data-clause lowering as
fir.boxchar. This type is not currently mappable, causing an assertion
failure.

Emit an NYI diagnostic instead until the support for mapping `boxchar`
is implemented.

Assisted-by: Codex
DeltaFile
+51-0flang/test/Lower/OpenACC/Todo/acc-boxchar.f90
+4-0flang/lib/Lower/OpenACC.cpp
+55-02 files

LLVM/project c1c1291 — llvm/lib/IR RuntimeLibcalls.cpp

Add asserts
DeltaFile
+4-1llvm/lib/IR/RuntimeLibcalls.cpp
+4-11 files

LLVM/project 9475f4a — llvm/test/Transforms/SafeStack/ARM existing-libcall-decls.ll

Move checks
DeltaFile
+19-19llvm/test/Transforms/SafeStack/ARM/existing-libcall-decls.ll
+19-191 files

LLVM/project 80d7217 — llvm/include/llvm/IR RuntimeLibcalls.h, llvm/lib/IR RuntimeLibcalls.cpp

RuntimeLibcalls: Add helper methods to insert declarations

Add methods to get or insert the declaration of a libcall
implementation in a module with the appropriate type and
annotations. A (potentially incorrectly declared) global that already
has the name is returned unmodified

Use them in DeclareRuntimeLibcalls, which no longer merges attributes
into or replaces the calling convention of existing functions, and no
longer crashes on a global variable with the name of a libcall
function.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+4-62llvm/lib/Transforms/Utils/DeclareRuntimeLibcalls.cpp
+40-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/existing_globals.ll
+39-0llvm/lib/IR/RuntimeLibcalls.cpp
+22-0llvm/include/llvm/IR/RuntimeLibcalls.h
+0-11llvm/test/Transforms/Util/DeclareRuntimeLibcalls/merge_attributes.ll
+105-735 files

LLVM/project 25ed129 — llvm/lib/CodeGen SafeStack.cpp TargetLoweringBase.cpp, llvm/test/Transforms/SafeStack/ARM existing-libcall-decls.ll

SafeStack: Take libcall declarations from RuntimeLibcallsInfo

Stop declaring __stack_chk_fail and __safestack_pointer_address
manually and construct them with the correct type automatically.

A function with the variable's name is now reported as not being a
global variable, rather than a renamed copy of the variable being
inserted. -safestack-use-pointer-address now requires
__safestack_pointer_address to be available for the target, instead of
unconditionally emitting a call to it. The tests using it on
non-Android triples move to Android.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+93-0llvm/test/Transforms/SafeStack/ARM/existing-libcall-decls.ll
+36-36llvm/lib/CodeGen/TargetLoweringBase.cpp
+12-21llvm/lib/CodeGen/SafeStack.cpp
+19-0llvm/test/Transforms/SafeStack/X86/unsafe-stack-ptr-function-error.ll
+19-0llvm/test/Transforms/SafeStack/X86/unsafe-stack-ptr-not-thread-local-error.ll
+13-0llvm/test/Transforms/SafeStack/X86/pointer-address-unavailable-error.ll
+192-578 files not shown
+221-7414 files

LLVM/project b3d4682 — clang/test/Preprocessor macro-directive-dump.c

[clang][test] Cover macro directive locations after pop_macro
DeltaFile
+11-1clang/test/Preprocessor/macro-directive-dump.c
+11-11 files

FreeBSD/ports 22fbec7 — editors/featherpad pkg-plist Makefile

editors/featherpad: Update to 1.6.4

ChangeLog at:   https://github.com/tsujan/FeatherPad/releases/tag/V1.6.4
With hat:       lxqt
DeltaFile
+3-3editors/featherpad/distinfo
+1-1editors/featherpad/Makefile
+1-0editors/featherpad/pkg-plist
+5-43 files