[CIR] Add a points-to analysis skeleton (#244356)
The CIR alias analysis stops at loads, so it cannot tell anything about
pointers loaded from memory. Since Clang emits a cir.alloca for every
local, including local pointers, most pointer uses in CIR go through a
load.
This adds a minimal points-to analysis that follows pointers through
memory. It is inclusion based and flow insensitive, tracks cir.alloca
objects through cir.store and cir.load, and treats any other use of an
address as an escape. Its work is bounded by PointsToLimits, using the
limits of a similar analysis tuned on large C++ code bases downstream.
Results are reported as optimization remarks in the points-to category,
which the tests check on CIR and on C++ sources.
This is the base for the lifetime checker in the ClangIR incubator and
for other downstream optimizations we'd like to upstream later. More
operations, track unknown states, an alias analysis built on the
points-to sets, and more optimizations to the solver will come in follow
[21 lines not shown]
[ConstraintElim] Keep the operands of replaced overflow intrinsics (#244673)
replaceOverflowUses replaces the operands of a simplified
add/sub.with.overflow and of its dead extracts with poison, so that the
intrinsic becomes use-empty. In an earlier PR, this caused a miscompile
as the older facts along with modified facts post-poisoning were
evaluated together.
Removal is deferred to the end of the pass, because the worklist may
still hold Uses of the intrinsic's operands, so the poison is not
needed. Keep the operands, and remove the intrinsic once only its dead
extracts use it.
Facts queued for the intrinsic before it is replaced then remain valid,
and later checks of uses of its operands are no longer skipped.
devel/forgejo-runner: add support for alternative commands
This updates the RC script to allow starting the service with a different
command, e.g., "cache-server" for running forgejo-runner as a cache server
instead of a regular runner.
Tested on NetBSD/amd64.
Bumps PKGREVISION.
kern: Enable respond to terminal
Shells like fish starts to query Device Capability from the kernel
terminal emulator. We already have the reply infras for each
protocols. The remaining part for this is to enable actual write.
Previously, we have lock issue from the respond side as
ttydisc_rint_done calls wakeup and takes the lock again.
The respond function now acts like queueing the response only, allo
of the output is handled in outwakeup. wakeup now handle queueing
after locking, which makes respond gets rid of locking from the parent.
After this, fish is able to run in the tty.
Reviewed by: dumbbell
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D62192
[NVPTX][NFC] Add baseline tests for incorrect memory access with Boolean vectors (#243240)
NVPTX is generating memory accesses that incorrectly treat one-bit
Boolean values as separate bytes.
Example - For an `<8 x i1>` kernel argument the generated PTX declares
one byte but reads the 8th Boolean value from byte offset 7, which is
outside that byte.
This PR is a first step towards the fix, it includes baseline tests that
record current behaviour. It includes 14 tests covering different vector
sizes, structures, arrays, function arguments, and results. All
incorrect accesses are marked as `FIXME`. These will be fixed in the
subsequent PR.
Related Issue / Found in :
[modular/modular#7480](https://github.com/modular/modular/issues/7480)
Assisted-by: ChatGPT
[3 lines not shown]
[ConstraintElim] Extracted HeaderPhi matcher (#248209)
Extracted HeaderPhi matcher from
https://github.com/llvm/llvm-project/pull/223214 for common use.
Note: as the test shows, providing a precise matcher means we don't lose
out on possible commutative match in CmpClass_match::match. Earlier we
get early success with just matching Phi and giving up later on match
vs. if we also check header, we do end up checking the commutative
version that matches.
[MC,COFF] Diagnose relocations without a symbol instead of crash (#249149)
A fixup that evaluates to a constant (`jmp 0x18`, `jmp 9f - 0b`) or to
`-sym` (`.long 0 - 0b`) hits assert(Target.getAddSym()). Report an
error instead.
devel/forgejo-runner: update to 13.3.0
Changes in 13.3.0:
* Features:
- PR: feat: use node:22-bookworm in forgejo-runner exec by default
rather than 20-bullseye
* Bug fixes:
- PR: fix: prevent the usage of unsanitized user data in step script
path names
- PR: fix: prevent extremely large expression parsing through
actionlint
- PR: fix: update lxc-helpers to v1.1.5
- PR: fix(plugin): remove custom dialer for unix sockets
- PR: fix: workaround lxc sudo bug
- PR: fix: exponential growth in the runner's secret-mask list w/
composite actions
- PR: fix: set container daemon socket to "-" if the default socket is
not available
[45 lines not shown]
[LoongArch] Select cheaper constants for AND using known bits (#245871)
The target-independent combines clear the bits of an AND mask that are
known to be zero in the other operand. That can make the mask more
expensive to materialize, e.g. -27 becomes 0xffffffe5 if the upper 32
bits are known to be zero:
```
addi.w $a1, $zero, -27
lu32i.d $a1, 0
and $a0, $a0, $a1
```
Set the leading bits again at instruction selection if the mask has no
other users and that makes it cheaper, or allows to use bstrins:
```
addi.w $a1, $zero, -27
and $a0, $a0, $a1
[5 lines not shown]
[LoongArch][NFC] Add tests for AND with constants and known bits (#245869)
Add tests for AND with constants, where the leading bits are known to be
zero in the other operand.
Assisted-By: LLM
clang/AMDGPU: Warn on xnack/sramecc flags for unsupported targets (#249138)
-mxnack/-mno-xnack and -msramecc/-mno-sramecc can only select a mode
on processors with a configurable mode. In the assembler case, this
would forward the old subtarget feature names and warn on an
unrecognized feature.
Assisted-by: Claude
textproc/ruby-rubyXL: update to 3.4.43
No 3.4.42 release.
3.4.43 (2026-12-01)
* Fix #490: Cell#value raises NoMethodError on an empty string cell
* A few bug fixes.
security/ruby-metasploit-payloads: update to 2.0.259
2.0.259 (2026-11-10)
* Merge pull request #1 from bwatters-r7/collab/msp-824;
Prevent problem rather than handle the problem
* Merge pull request #824 from kx7m2qd/fix-php-dispatch-tcp-large-packet;
Fix dispatch_tcp retiring on empty chunk read between TCP segments
[GVN] Scan users of the walker's clobbering access for local load dependencies (#248803)
Previously, if the clobber found in Phase 1 is a MemoryPhi or a
MemoryDef outside the current BB, we proceed directly to Phase 2/3.
However, the clobber returned by the walker may still have users in the
current BB, which can be candidates for available values.
As a result, we add support for scanning MemoryUses of the clobber
returned by the walker before proceeding to Phase 2/3.
Assisted-by: Claude # Test