LLVM/project cf9b3bbmlir/include/mlir/IR PatternMatch.h, mlir/lib/Dialect/SCF/IR SCF.cpp

[mlir][IR][NFC] Add `RewriterBase::eraseOpResults` convenience helper (#174152)

There are various places in the code base where op results are removed.
E.g., some canonicalization patterns remove op results. This commit adds
a new helper function to `RewriterBase` to reduce code duplication and
simplify patterns. The existing implementation from
`RemoveDeadValues.cpp` is moved into the rewriter API.

There is now a uniform API for removing operands and values:
* `Block::eraseArguments(BitVector)`
* `Operation::eraseOperands(BitVector)`
* NEW: `RewriterBase::eraseOpResults(Operation *, BitVector)`

This commit is preparation of adding new canonicalizations for
region-based ops, which will add yet another place where op results must
be erased.
DeltaFile
+58-131mlir/lib/Dialect/SCF/IR/SCF.cpp
+36-0mlir/lib/IR/PatternMatch.cpp
+3-28mlir/lib/Transforms/RemoveDeadValues.cpp
+6-0mlir/include/mlir/IR/PatternMatch.h
+103-1594 files

LLVM/project c646d1bmlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp, mlir/test/Target/LLVMIR openmp-llvm.mlir

[MLIR][OpenMP] Fix type mismatch in linear clause for INTEGER(8) variables (#173982)

Fixes #173332 

The compiler was crashing when compiling OpenMP `parallel do simd` with
a `linear` clause on `INTEGER(8)` variables. The assertion failure
occurred during MLIR-to-LLVM translation:
Cannot create binary operator with two operands of differing type!

**Root Cause:**
The bug was in `LinearClauseProcessor::updateLinearVar()` where the step
value (i32) and induction variable were multiplied without normalizing
to the linear variable's type (i64), causing type mismatches in LLVM IR
generation.

**Solution:**
Updated the translation logic to cast both the induction variable and
step value to `linearVarTypes[index]` before performing arithmetic
operations. This ensures type consistency for both integer and

    [7 lines not shown]
DeltaFile
+64-0mlir/test/Target/LLVMIR/openmp-llvm.mlir
+29-9mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+93-92 files

LLVM/project d6ed38cllvm/lib/Transforms/Vectorize VectorCombine.cpp

add TTI cost check to check profitability
DeltaFile
+32-6llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+32-61 files

LLVM/project dbc28c3mlir/lib/Dialect/SCF/IR SCF.cpp, mlir/lib/IR PatternMatch.cpp

address comments
DeltaFile
+2-2mlir/lib/Dialect/SCF/IR/SCF.cpp
+1-1mlir/lib/IR/PatternMatch.cpp
+3-32 files

FreeBSD/ports 87ad00bftp/ftpcopy Makefile distinfo, ftp/ftpcopy/files patch-src_attributes.h patch-src_typesize.sh

ftp/ftpcopy: fix build on ARM64 and refresh

With GCC14 now being pulled in on non-i386 non-amd64 platforms,
the compiler is stricter about prototypes.

I think all our base compilers should be good enough, but some
platforms don't seem to allow regparm, so patch that out.
DeltaFile
+11-0ftp/ftpcopy/files/patch-src_attributes.h
+1-5ftp/ftpcopy/Makefile
+3-3ftp/ftpcopy/files/patch-src_typesize.sh
+1-0ftp/ftpcopy/distinfo
+16-84 files

LLVM/project 420da86clang/test/AST/ByteCode cxx03.cpp

[clang][bytecode] Disable test on 32 bit systems

The array we create is too big for those.
See https://lab.llvm.org/buildbot/#/builders/154/builds/25860
DeltaFile
+2-0clang/test/AST/ByteCode/cxx03.cpp
+2-01 files

NetBSD/pkgsrc-wip 19714d5R TODO distinfo, R/patches patch-configure.ac

(math/R) Partly fix the problem of 4.4.3 on NetBSD/9.3
DeltaFile
+33-0R/patches/patch-configure.ac
+24-0R/TODO
+1-2R/distinfo
+58-23 files

NetBSD/xsrc AXnzVUMexternal/mit/xkbcomp/dist configure xkbparse.c

   Pull up the following, requested by mrg in ticket #1992:

        external/mit/xkbcomp/dist/COPYING               up to 1.1.1.2
        external/mit/xkbcomp/dist/ChangeLog             up to 1.1.1.16
        external/mit/xkbcomp/dist/Makefile.am           up to 1.1.1.8
        external/mit/xkbcomp/dist/Makefile.in           up to 1.1.1.14
        external/mit/xkbcomp/dist/README                up to 1.1.1.4
        external/mit/xkbcomp/dist/aclocal.m4            up to 1.1.1.15
        external/mit/xkbcomp/dist/action.c              up to 1.1.1.5
        external/mit/xkbcomp/dist/action.h              up to 1.1.1.5
        external/mit/xkbcomp/dist/alias.c               up to 1.1.1.6
        external/mit/xkbcomp/dist/alias.h               up to 1.1.1.4
        external/mit/xkbcomp/dist/compat.c              up to 1.1.1.9
        external/mit/xkbcomp/dist/compile               up to 1.1.1.7
        external/mit/xkbcomp/dist/config.guess          up to 1.1.1.14
        external/mit/xkbcomp/dist/config.h.in           up to 1.1.1.6
        external/mit/xkbcomp/dist/config.sub            up to 1.1.1.14
        external/mit/xkbcomp/dist/configure             up to 1.1.1.16
        external/mit/xkbcomp/dist/configure.ac          up to 1.1.1.16

    [38 lines not shown]
VersionDeltaFile
1.1.1.12.2.1+5,812-4,476external/mit/xkbcomp/dist/configure
1.1.1.9.2.1+1,742-1,647external/mit/xkbcomp/dist/xkbparse.c
1.1.1.10.2.1+1,847-1,329external/mit/xkbcomp/dist/config.sub
1.1.1.10.2.1+1,020-681external/mit/xkbcomp/dist/config.guess
1.1.1.12.2.1+1,030-0external/mit/xkbcomp/dist/ChangeLog
1.1.1.11.2.1+508-301external/mit/xkbcomp/dist/aclocal.m4
+11,959-8,43452 files not shown
+15,062-11,38458 files

LLVM/project af80688llvm/test/CodeGen/NVPTX tensormap_replace_sm_100a.ll tensormap_replace.ll

[NVPTX] Add missing preconditions to tensormap replace tests (#174190)

This change adds preconditions for the ISA and SM versions to the
`ptxas` RUN lines for the tests added in
14b1d770db7f9ee49693063ad851215dede0766e which were accidentally
omitted.
DeltaFile
+1-1llvm/test/CodeGen/NVPTX/tensormap_replace_sm_100a.ll
+1-1llvm/test/CodeGen/NVPTX/tensormap_replace.ll
+2-22 files

NetBSD/src aBGgknDdoc CHANGES-10.2

   Tickets #1212 and #1213
VersionDeltaFile
1.1.2.82+61-1doc/CHANGES-10.2
+61-11 files

NetBSD/xsrc pawUR5Jexternal/mit/xkbcomp/dist configure xkbparse.c

   Pull up the following, requested by mrg in ticket #1213:

        external/mit/xkbcomp/dist/man/meson.build       up to 1.1.1.1
        external/mit/xkbcomp/dist/meson.build           up to 1.1.1.1
        external/mit/xkbcomp/dist/meson.options         up to 1.1.1.1
        external/mit/xkbcomp/dist/ChangeLog             up to 1.1.1.16
        external/mit/xkbcomp/dist/Makefile.am           up to 1.1.1.8
        external/mit/xkbcomp/dist/Makefile.in           up to 1.1.1.14
        external/mit/xkbcomp/dist/aclocal.m4            up to 1.1.1.15
        external/mit/xkbcomp/dist/action.c              up to 1.1.1.5
        external/mit/xkbcomp/dist/action.h              up to 1.1.1.5
        external/mit/xkbcomp/dist/alias.c               up to 1.1.1.6
        external/mit/xkbcomp/dist/alias.h               up to 1.1.1.4
        external/mit/xkbcomp/dist/compat.c              up to 1.1.1.9
        external/mit/xkbcomp/dist/compile               up to 1.1.1.7
        external/mit/xkbcomp/dist/config.guess          up to 1.1.1.14
        external/mit/xkbcomp/dist/config.h.in           up to 1.1.1.6
        external/mit/xkbcomp/dist/config.sub            up to 1.1.1.14
        external/mit/xkbcomp/dist/configure             up to 1.1.1.16

    [37 lines not shown]
VersionDeltaFile
1.1.1.13.2.1+5,765-4,460external/mit/xkbcomp/dist/configure
1.1.1.10.2.1+911-823external/mit/xkbcomp/dist/xkbparse.c
1.1.1.11.2.1+928-599external/mit/xkbcomp/dist/config.guess
1.1.1.11.2.1+1,004-440external/mit/xkbcomp/dist/config.sub
1.1.1.13.2.1+786-0external/mit/xkbcomp/dist/ChangeLog
1.1.1.12.2.1+402-204external/mit/xkbcomp/dist/aclocal.m4
+9,796-6,52648 files not shown
+11,980-8,62554 files

LLVM/project da5845dclang/lib/AST/ByteCode InterpBuiltin.cpp, clang/test/AST/ByteCode builtins.c

[clang][bytecode] Check builtin_memchr for non-block pointers earlier (#174192)

The getType() call might fail. We can't pull the isReadable() check up
though because that creates different diagnostic output compared to the
current interpreter.

Fixes #172202
DeltaFile
+3-0clang/lib/AST/ByteCode/InterpBuiltin.cpp
+1-0clang/test/AST/ByteCode/builtins.c
+4-02 files

LLVM/project bd566cdmlir/include/mlir/Interfaces ControlFlowInterfaces.h ControlFlowInterfaces.td, mlir/lib/Dialect/SCF/IR SCF.cpp

[mlir][draft] Consolidate patterns into RegionBranchOpInterface patterns

fix some tests

reorganize code
DeltaFile
+17-813mlir/lib/Dialect/SCF/IR/SCF.cpp
+467-0mlir/lib/Interfaces/ControlFlowInterfaces.cpp
+11-13mlir/test/Dialect/SCF/canonicalize.mlir
+9-0mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
+4-4mlir/test/Transforms/remove-dead-values.mlir
+5-0mlir/include/mlir/Interfaces/ControlFlowInterfaces.td
+513-8306 files

LLVM/project 508e3cbclang/lib/AST/ByteCode Compiler.cpp, clang/test/AST/ByteCode cxx03.cpp

[clang][bytecode] Check for null Record (#174193)

This is an error case that results in a null Record, so don't crash
later in that case.

Fixes #173941
DeltaFile
+10-0clang/test/AST/ByteCode/cxx03.cpp
+2-0clang/lib/AST/ByteCode/Compiler.cpp
+12-02 files

LLVM/project 2b903dfllvm/cmake/modules HandleLLVMOptions.cmake

[CMake] Fix variable name mistake

Fixup of d1b88ca8d4c5d849ae93111ae9e24d88dad4b762, was an overly eager
find-replace..
DeltaFile
+2-2llvm/cmake/modules/HandleLLVMOptions.cmake
+2-21 files

LLVM/project 4ee9d73mlir/include/mlir/Interfaces ControlFlowInterfaces.h ControlFlowInterfaces.td, mlir/lib/Dialect/SCF/IR SCF.cpp

[mlir][draft] Consolidate patterns into RegionBranchOpInterface patterns

fix some tests

reorganize code
DeltaFile
+17-813mlir/lib/Dialect/SCF/IR/SCF.cpp
+461-0mlir/lib/Interfaces/ControlFlowInterfaces.cpp
+11-13mlir/test/Dialect/SCF/canonicalize.mlir
+9-0mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
+4-4mlir/test/Transforms/remove-dead-values.mlir
+5-0mlir/include/mlir/Interfaces/ControlFlowInterfaces.td
+507-8306 files

NetBSD/src 2f3Ows9doc CHANGES-11.0

   Ticket #138
VersionDeltaFile
1.1.2.64+6-1doc/CHANGES-11.0
+6-11 files

NetBSD/pkgsrc-wip 0d229f2recutils TODO

recutils: Add reference to CVE-2025-65409
DeltaFile
+2-1recutils/TODO
+2-11 files

NetBSD/pkgsrc-wip acf4a88cloudflare-speed-cli DESCR

cloudflare-speed-cli: fix "a" copypasto
DeltaFile
+1-1cloudflare-speed-cli/DESCR
+1-11 files

NetBSD/src lj5tvSPsys/conf copyright

   Pull up following revision(s) (requested by hgutch in ticket #1991):

        sys/conf/copyright: revision 1.24

   welcome to 2026
VersionDeltaFile
1.17.4.6+1-1sys/conf/copyright
+1-11 files

NetBSD/pkgsrc-wip 2efca32cloudflare-speed-cli Makefile

cloudflare-speed-cli: simplify GITHUB_TAG handling

Omit not needed `refs/tags/`.
DeltaFile
+1-1cloudflare-speed-cli/Makefile
+1-11 files

NetBSD/src XjSgoeYsys/conf copyright

   Pull up following revision(s) (requested by hgutch in ticket #1212):

        sys/conf/copyright: revision 1.24

   welcome to 2026
VersionDeltaFile
1.20.4.4+1-1sys/conf/copyright
+1-11 files

LLVM/project 14c98bcllvm/lib/Transforms/Instrumentation ControlHeightReduction.cpp, llvm/test/Transforms/PGOProfile chr-unknown-profdata-crash.ll

[CHR] Fix crash when marking merged condition unknown (#173902)

CHR builds the merged hot-path predicate with
IRBuilder::CreateLogicalAnd. That helper is implemented as a select and
can constant-fold to a non- Instruction (e.g. i1 true). The pass then
attempted to mark the merged condition as having explicitly unknown
branch weights when profile data is present, but it unconditionally did
cast<Instruction>(MergedCondition), which can crash in release builds.

Guard the metadata update with dyn_cast<Instruction> and pass the
containing Function explicitly to avoid calling Instruction::getFunction
when the value is not attached yet.

Add a regression test that exercises the constant-folding case.

Crashing stack:

```
  2.      Running pass "chr" on function "repro_crash"

    [14 lines not shown]
DeltaFile
+33-0llvm/test/Transforms/PGOProfile/chr-unknown-profdata-crash.ll
+2-2llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+35-22 files

NetBSD/src X2W2nJmsys/conf copyright

   Pull up following revision(s) (requested by hgutch in ticket #138):

        sys/conf/copyright: revision 1.24

   welcome to 2026
VersionDeltaFile
1.23.2.1+1-1sys/conf/copyright
+1-11 files

LLVM/project e63cc4allvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/Attributor nofpclass.ll

Check isGuaranteedNotToBeUndef
DeltaFile
+6-4llvm/lib/Analysis/ValueTracking.cpp
+2-2llvm/test/Transforms/Attributor/nofpclass.ll
+8-62 files

LLVM/project 69b33a5llvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/Attributor nofpclass.ll

ValueTracking: Improve handling of fadd in computeKnownFPClass.

This already recognized that if both inputs are positive, the
result is positive. Extend this to the mirror situation with
negative inputs.

Also special case fadd x, x. Canonically, fmul x, 2 is fadd x, x.
We can tell the sign bit won't change, and 0 will propagate.
DeltaFile
+25-25llvm/test/Transforms/Attributor/nofpclass.ll
+24-4llvm/lib/Analysis/ValueTracking.cpp
+49-292 files

LLVM/project 49f636bllvm/test/Transforms/Attributor nofpclass.ll

ValueTracking: Add more baseline tests for computeKnownFPClass of fadd

Test cases with fadd x, x. Also test cases where both inputs are known
negative.
DeltaFile
+636-106llvm/test/Transforms/Attributor/nofpclass.ll
+636-1061 files

DragonFlyBSD/src ea2c254sys/vfs/procfs procfs_status.c procfs_regs.c

procfs - Don't reset fd offset when reading regs, fpregs, or dbregs files.

* For repeated reads, we can simply use pread(2). And this way, we allow for
  normal shell tooling to work correctly on these procfs files.

* This also matches the behavior on NetBSD.
DeltaFile
+1-1sys/vfs/procfs/procfs_status.c
+0-1sys/vfs/procfs/procfs_regs.c
+0-1sys/vfs/procfs/procfs_fpregs.c
+0-1sys/vfs/procfs/procfs_dbregs.c
+1-44 files

OpenBSD/ports Nf8nMcomath/cddlib Makefile distinfo, math/cddlib/pkg PLIST

   Update to cddlib-0.94n.
VersionDeltaFile
1.6+3-4math/cddlib/Makefile
1.4+2-2math/cddlib/distinfo
1.5+1-0math/cddlib/pkg/PLIST
+6-63 files

LLVM/project d6feb62llvm/lib/Target/AMDGPU AMDGPULateCodeGenPrepare.cpp, llvm/lib/Transforms/Vectorize VectorCombine.cpp

review: apply the patch to vectorcombine based on suggestion
DeltaFile
+82-85llvm/test/CodeGen/AMDGPU/combine-scalar-selects.ll
+4-153llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp
+122-0llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+2-2llvm/test/CodeGen/AMDGPU/combine-scalar-selects-asm.ll
+210-2404 files