LLVM/project da0c533 — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/test/CIR/Transforms inline-indirect-call.cir

[CIR] Handle Indirect call in getter and setter of callee

Indirect call from function pointer has no SymbolRefAttr, which cause
assetion in dyn_cast. Handle them specially.

Assisted-by: Claude # Test
DeltaFile
+32-0clang/test/CIR/Transforms/inline-indirect-call.cir
+6-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+38-02 files

LLVM/project 25b1c80 — llvm/lib/Target/SystemZ SystemZISelLowering.h SystemZISelLowering.cpp, llvm/test/CodeGen/SystemZ pdep-pext.ll

[SystemZ] Lower ISD::PDEP and ISD::PEXT on z17 using BDEPG and BEXTG (#244196)

Implement custom lowering for ISD::PDEP and ISD::PEXT on IBM z17
(Miscellaneous-Instruction-Extensions Facility 4 / arch15).

z17 introduces BDEPG (Bit Deposit) and BEXTG (Bit Extract) instructions,
which operate on left-justified (MSB-first) bit fields:
- ISD::PEXT is lowered using BEXTG followed by a right shift (by 64 -
popcount(mask)) to right-justify the extracted bits.
- ISD::PDEP is lowered by left-shifting the value (by 64 -
popcount(mask)) to align LSBs to the MSB, followed by BDEPG.
- For constant masks, popcount and shift amounts are computed at compile
time.
- Scalar sub-i64 types (i8, i16, i32) are promoted to i64.

Assisted by: IBM Bob
---------

Co-authored-by: Kazu Hirata <kazu at google.com>
DeltaFile
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+66-1llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+2-0llvm/lib/Target/SystemZ/SystemZISelLowering.h
+1,006-13 files

FreeBSD/src e590490 — sys/fs/ext2fs ext2_balloc.c ext2_extern.h

ext2fs: Multi-block allocator with extent tree support and allocation lifecycle state machine

The idea is to have an allocator that makes better use of the locality
information and is better suited for extents. It is similar to what
Linux calls a multiblock allocator in a paper from 2005. The Linux
code was not inspected or used in this implementation.

Implement ext2_alloc_run() — a multi-block physical allocator that
reserves a contiguous physical block run and returns it via a
context-based state machine:

ALLOCATED -> MAPPED -> PUBLISHED -> ROLLED_BACK

ext2_alloc_run() enforces the reserved-block policy using struct
ucred *cred (NOCRED panics under INVARIANTS). Callers include
ext2_alloc() and ext4_new_blocks() for block allocation.

ext4_ext_split() uses scalar ext2_rollback_unpublished() for metadata
block cleanup (no context arrays). ext4_ext_insert_extent() handles

    [23 lines not shown]
DeltaFile
+461-36sys/fs/ext2fs/ext2_alloc.c
+323-38sys/fs/ext2fs/ext2_extents.c
+280-1sys/fs/ext2fs/ext2_extern.h
+119-50sys/fs/ext2fs/ext2_balloc.c
+1,183-1254 files

LLVM/project 521730a — llvm/lib/Analysis ValueTracking.cpp, llvm/test/Analysis/ValueTracking signbits-extract-elt.ll

[ValueTracking] Propagate demanded lanes through bitcasts in sign-bit queries (#244290)

Map demanded result lanes back to their source lanes when splitting
integer elements in a bitcast.

Assisted by: GPT 6.1 Sol
DeltaFile
+61-0llvm/test/Analysis/ValueTracking/signbits-extract-elt.ll
+4-1llvm/lib/Analysis/ValueTracking.cpp
+65-12 files

FreeBSD/poudriere 9418e10 — src/share/poudriere/html/assets poudriere.js

html: Remove the dead /latest/ redirect

Since dfe3002d4, process_data() sets page_buildname from the loaded
data before process_data_build() runs, so the page_buildname ==
"latest" check never matches.  A build=latest URL loads the build
through the latest symlink and stays on it.
DeltaFile
+0-6src/share/poudriere/html/assets/poudriere.js
+0-61 files

LLVM/project 11e5f97 — mlir/lib/Interfaces SideEffectInterfaces.cpp CMakeLists.txt, mlir/test/Dialect/EmitC canonicalize.mlir

[MLIR] Filter out recursive memory effect for ReturnLike

ReturnLike interface should be rule out from the MemoryEffect check
for RecursiveMemoryEffect. It makes sense as the memory effect for
ReturnLike never effect its parent scope.

Assisted-by: Claude # Test
DeltaFile
+25-0mlir/test/Transforms/remove-dead-values.mlir
+25-0mlir/test/Transforms/canonicalize-dce.mlir
+16-0mlir/test/Dialect/SparseTensor/canonicalize.mlir
+14-1mlir/lib/Interfaces/CMakeLists.txt
+10-2mlir/lib/Interfaces/SideEffectInterfaces.cpp
+8-0mlir/test/Dialect/EmitC/canonicalize.mlir
+98-35 files not shown
+108-611 files

LLVM/project 27fdc47 — .github/workflows libc-freebsd-vm-tests.yml libc-overlay-tests.yml

[GitHub][libc] Use MinSizeRel instead of RelWithDebInfo

Comments were stale after fc60e08b4574a85f6966a751f32290f5732d1329
seeminly accidentally switched to RelWithDebInfo. Switch back to
MinSizeRel to avoid all the overhead of generating debug info.

Also drop the requirement for CMP0141 given it's explicitly set in
CMakePolicy.cmake and is also redundant after requiring CMake 3.31.

Reviewers: SchrodingerZhu, kaladron, lntue

Pull Request: https://github.com/llvm/llvm-project/pull/244733
DeltaFile
+2-4.github/workflows/libc-overlay-tests.yml
+1-3.github/workflows/libc-freebsd-vm-tests.yml
+3-72 files

LLVM/project dd74368 — .github/workflows libc-freebsd-vm-tests.yml

fix

Created using spr 1.3.7
DeltaFile
+0-1.github/workflows/libc-freebsd-vm-tests.yml
+0-11 files

LLVM/project 428d3e8 — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU addrspacecast-known-non-null-O0.ll

[AMDGPU] Pass the cast source to isKnownNonNull in lowerADDRSPACECAST (#244287)

`lowerADDRSPACECAST` passes the cast node instead of its source to
`isKnownNonNull`. The cast node is never a frame index, a global
address, or a constant, so the check never succeeds, and SelectionDAG
checks for null when it casts an alloca or a global. At -O2 the
`nonnull` flag that IR passes set on the cast hides this, but at -O0
every such cast gets a compare and two selects. The GlobalISel path
already passes the source.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+0-14llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null-O0.ll
+3-11llvm/test/DebugInfo/AMDGPU/debug-loc-copy.ll
+2-2llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+5-273 files

LLVM/project 4f19343 — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

fixup! [CIR] Wire unreachable and return to MemoryEffectsOpInterface
DeltaFile
+57-0clang/test/CIR/Transforms/cse.cir
+31-0clang/test/CIR/Transforms/canonicalize.cir
+0-23clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+2-5clang/include/clang/CIR/Dialect/IR/CIROps.td
+90-284 files

LLVM/project 4b8678a — flang/test/Fir/OpenACC legalize-data.fir, mlir/include/mlir/Dialect/OpenACC/Transforms Passes.td

[mlir][openacc] Update LegalizeDataValues to be anchored on FunctionOpInterface (#244687)

In preparation to use the pass in the CIR/OpenACC pipeline, CIR uses
cir.func that implement the FunctionOpInterface so the pass is better
anchored on it than func.func.
DeltaFile
+18-0mlir/test/Dialect/OpenACC/legalize-data-function-interface.mlir
+2-2mlir/test/Dialect/OpenACC/legalize-data.mlir
+2-1mlir/lib/Dialect/OpenACC/Transforms/LegalizeDataValues.cpp
+2-1mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td
+1-1flang/test/Fir/OpenACC/legalize-data.fir
+25-55 files

LLVM/project 2fbab0e — llvm/lib/CodeGen SelectOptimize.cpp, llvm/test/CodeGen/AArch64 selectopt.ll

[SelectOptimize] Do not convert unpredictable selects to branches in inner loops (#236418)

Inner loop select optimization does not check for unpredictable
metadata, allowing unpredictable selects to be converted to branches.

Filter out unpredictable select groups in
findProfitableSIGroupsInnerLoops and add regression tests to
AArch64/selectopt.ll covering single and dual recurrence loops.
DeltaFile
+187-0llvm/test/CodeGen/AArch64/selectopt.ll
+18-0llvm/lib/CodeGen/SelectOptimize.cpp
+205-02 files

LLVM/project 1a9bed7 — .github/workflows libc-freebsd-vm-tests.yml

fix

Created using spr 1.3.7
DeltaFile
+1-1.github/workflows/libc-freebsd-vm-tests.yml
+1-11 files

LLVM/project 6520169 — llvm/lib/Analysis LazyValueInfo.cpp, llvm/test/Transforms/CorrelatedValuePropagation cond-at-use.ll

[LVI] Raise MaxUsesToInspect limit in getValueAtUse to 6 (#241468)

Using ternary operators can result in a redundant min() operation:

```
  int need     = avail < 0 ? -avail : 0;                // -min(avail, 0)
  uint64_t add = avail < 0 ? (uint64_t)w << need : 0;   // the min is redundant
```

The same can happen when using branches (see the referenced issue below). IR and the redundant min:

```
  %5 = icmp slt i32 %4, 0
  %6 = tail call i32 @llvm.smin.i32(i32 %4, i32 0)   ; <== this can be eliminated
  %7 = sub nsw i32 0, %6
  %8 = zext i32 %1 to i64
  %9 = zext nneg i32 %7 to i64
  %10 = shl i64 %8, %9
  %11 = select i1 %5, i64 %10, i64 0

    [6 lines not shown]
DeltaFile
+68-4llvm/test/Transforms/CorrelatedValuePropagation/cond-at-use.ll
+1-2llvm/lib/Analysis/LazyValueInfo.cpp
+69-62 files

LLVM/project aa12ab4 — libc/config/linux config.json, libc/config/linux/aarch64 config.json

[libc] Switch default find_first_character impl to clang_vector

The clang_vector implementation is way faster than the SWAR
implementation and what we want to be using by default at this point.

Override AArch64 and PPC to use the word implementation as otherwise
when compiling with glibc they fall back to the arch_vector
implementation which doesn't exist.

Reviewers: jhuber6, vonosmas

Pull Request: https://github.com/llvm/llvm-project/pull/244470
DeltaFile
+7-0libc/config/linux/aarch64/config.json
+3-0libc/config/linux/power/config.json
+1-1libc/config/linux/config.json
+11-13 files

FreeBSD/ports bffd154 — sysutils/apt-mirror-devel Makefile

sysutils/apt-mirror-devel: fix LICENSE
DeltaFile
+1-1sysutils/apt-mirror-devel/Makefile
+1-11 files

FreeBSD/ports 3d789bc — emulators/libspectrum Makefile

emulators/libspectrum: fix LICENSE
DeltaFile
+1-1emulators/libspectrum/Makefile
+1-11 files

FreeBSD/ports efffde4 — emulators/fuse-utils Makefile

emulators/fuse-utils: fix LICENSE
DeltaFile
+1-1emulators/fuse-utils/Makefile
+1-11 files

LLVM/project d88456a — clang/include/clang/ScalableStaticAnalysis/Analyses/PointerFlow PointerFlowPairs.h

Update clang/include/clang/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowPairs.h

Co-authored-by: Rashmi Mudduluru <r_mudduluru at apple.com>
DeltaFile
+1-1clang/include/clang/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowPairs.h
+1-11 files

LLVM/project 77312b7 — libc/src/string/memory_utils/generic inline_strlen.h

[libc] Add optimized clang_vector memchr implementation

This patch adds a reasonably optimized clang_vector based memchr
implementation. It is comparable in .text size to glibc and about 30%
faster for inputs <64 bytes (90+% of inputs for server applications). We
lose a little bit for larger inputs due to extra instructions in the
main loop that LLVM isn't able to optimize away, but not by too much.

The original implementatin was written by an agent as I prodded it to
keep making the implementation faster. Then I heavily hand-edited mostly
for style.

Assisted-By: LLM

Reviewers: lntue, jhuber6, michaelrj-google

Pull Request: https://github.com/llvm/llvm-project/pull/244469
DeltaFile
+151-22libc/src/string/memory_utils/generic/inline_strlen.h
+151-221 files

FreeBSD/ports edd27f6 — editors/hte Makefile

editors/hte: fix LICENSE
DeltaFile
+1-1editors/hte/Makefile
+1-11 files

FreeBSD/ports c8dee9e — comms/dcf77pi Makefile

comms/dcf77pi: fix LICENSE
DeltaFile
+1-1comms/dcf77pi/Makefile
+1-11 files

LLVM/project 3f2f59a — .github/workflows libc-freebsd-vm-tests.yml

try again

Created using spr 1.3.7
DeltaFile
+4-3.github/workflows/libc-freebsd-vm-tests.yml
+4-31 files

LLVM/project 1cfbf0a — llvm/lib/Transforms/Vectorize VPlanUtils.h

[VPlan] Simplify VPBlockUtils::blocksAs using CastTo (NFC). (#244721)

CastTo preserves the const-ness of its argument, so the lambda and the
explicit BaseTy needed to pick the const-qualified base type are no
longer needed.
DeltaFile
+1-5llvm/lib/Transforms/Vectorize/VPlanUtils.h
+1-51 files

OpenBSD/src I9Sy4lE — regress/usr.bin/ssh/unittests/authopt tests.c

   check valid before merging
VersionDeltaFile
1.8+42-1regress/usr.bin/ssh/unittests/authopt/tests.c
+42-11 files

LLVM/project 0e88caf — llvm/lib/Target/SystemZ SystemZISelLowering.cpp, llvm/test/CodeGen/SystemZ pdep-pext.ll

Changes due to review comments
DeltaFile
+15-16llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+9-17llvm/test/CodeGen/SystemZ/pdep-pext.ll
+24-332 files

LLVM/project 13d0854 — llvm/lib/Target/SystemZ SystemZISelLowering.cpp

Apply suggestion from @kazutakahirata

Co-authored-by: Kazu Hirata <kazu at google.com>
DeltaFile
+1-2llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+1-21 files

LLVM/project 61dd946 — llvm/lib/Target/SystemZ SystemZISelLowering.h SystemZISelLowering.cpp, llvm/test/CodeGen/SystemZ pdep-pext.ll

[SystemZ] Lower ISD::PDEP and ISD::PEXT on z17 using BDEPG and BEXTG

Implement custom lowering for ISD::PDEP and ISD::PEXT on IBM z17
(Miscellaneous-Instruction-Extensions Facility 4 / arch15).

z17 introduces BDEPG (Bit Deposit) and BEXTG (Bit Extract) instructions,
which operate on left-justified (MSB-first) bit fields:
- ISD::PEXT is lowered using BEXTG followed by a right shift (by 64 - popcount(mask))
  to right-justify the extracted bits.
- ISD::PDEP is lowered by left-shifting the value (by 64 - popcount(mask)) to align
  LSBs to the MSB, followed by BDEPG.
- For constant masks, popcount and shift amounts are computed at compile time.
- Scalar sub-i64 types (i8, i16, i32) are promoted to i64.
DeltaFile
+946-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+64-1llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+2-0llvm/lib/Target/SystemZ/SystemZISelLowering.h
+1,012-13 files

LLVM/project 82801b7 — llvm/lib/Target/SystemZ SystemZISelLowering.cpp

Add the 'AND 63' back in
DeltaFile
+6-2llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+6-21 files

OpenBSD/src ojqMdNK — usr.bin/ssh auth-options.c

   correctly handle zero values when merging valid before intervals

   a zero valid before value should be clobbered by any nonzero value
VersionDeltaFile
1.105+3-3usr.bin/ssh/auth-options.c
+3-31 files