[Polly] Retain vectorization for fallback loop when RTC is provably false at compile time (#243781)
Polly currently has a guard to not disable vectorization if the runtime
condition is constant False. This expands that to also include
situations where the runtime guard is non-constant, but provably false
at compile time, e.g RTC = (cond1 && cond2 && cond3), and any of them is
false. Currently vectorization is disabled in those cases, causing big
slowdowns.
Fixes #243780
Assisted by Codex (6.1 Sol and 6.1 Astra)
[RISCV]Fix calls to missing libcalls functions with -Os (#243839)
On RISC-V targets without Zfa, lowerFTRUNC_FCEIL_FFLOOR_FROUND
previously returned SDValue() unconditionally under optsize/minsize
(-Os/-Oz) to emit math libcalls instead of inline sequences. Because
types such as f16 (with +zfh or +zhinx and no +zfa) have no standard
rounding libcalls in RTLIB, SelectionDAG legalization failed whenever
scalar rounding intrinsics were compiled for size.
Add getRoundingLibcall to check libcall availability for the
custom-lowered scalar rounding opcodes (FTRUNC, FFLOOR, FCEIL, FRINT,
FROUND, FROUNDEVEN) and only fall back to libcall expansion under
shouldOptForSize() when a supported libcall exists.
lang/ruby40: update to 4.0.10
4.0.10 (2026-11-18)
Security fixes
This release fixes seven vulnerabilities. See Security advisories: multiple
vulnerabilities in Regexp and String case conversion for details.
* GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings
(#20005)
* GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation (#20001)
* GHSA-87fm-7w84-j2px: Integer overflow in case conversion of strings (#20006)
* GHSA-wpqw-5qxg-m68r: Out-of-bounds read in case-insensitive regular
expression matching (#20002)
* GHSA-3p8q-wmhx-vm2w: Heap buffer overflow in regular expression
compilation (#20000)
* GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s (#20004)
* GHSA-pvgc-g7gj-pv6h: Out-of-bounds read in case-insensitive backreference
[4 lines not shown]
lang/ruby33: update to 3.3.14
3.3.14 (2026-11-18)
This release fixes seven vulnerabilities have been discovered in Ruby's
regular expression engine and in the case conversion of strings.
Please refer
<https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/>
in detail.
What's Changed
* Bug #22477: rb_ec_clear_vm_stack() can still clear the VM stack before
ec->cfp = NULL on aarch64
* Bug #22479: File.realdirpath returns a wrong path when GC runs while it
resolves a relative symlink
* Bug #22476: rb_profile_frames() called from a signal handler segfaults
while vm_make_env_each() is escaping a chain of frames
[69 lines not shown]
[mlir][transform] Fuse selected producers in reverse topological order (#241779)
`transform.structured.fuse_into_containing_op` can leave a shared
producer partially unfused when it is processed before one of its
selected consumers.
For a dependency such as `P -> R -> Y` with an additional `P -> Y` edge,
P may be removed from the pending set before fusing R introduces another
use of P. In the standard Softmax decomposition, this leaves both
full-tensor and tiled exponential computations, even after
canonicalization and CSE.
Process selected producers in reverse topological order so that consumer
fusion exposes all relevant producer uses before the producer is
retired. Also diagnose parentless producers before sorting.
Regression tests cover Softmax with both handle orders, skip
connections, multi-result producers, distinct tiles, and invalid
top-level producers.
[5 lines not shown]
[mlir] Hoist invariant ops out of nested regions in LICM (#227145)
LICM only looked at ops directly in the loop body, so an invariant op
inside an `scf.if` or `affine.if` that stays in the loop was never
hoisted. The shared LICM utility now also looks into control-flow
regions nested in the loop body and hoists pure ops whose operands are
defined outside the loop.
Fixes #226878
Fixes #215458
Fixes #215492
Used Claude to write tests
libsysdecode: Avoid non-portable \> word end boundary in mktables
Whilst we bootstrap our own sed when building on non-FreeBSD, it uses
the system regex(3) implementation, and so inherits its extensions, not
our own. Our implementation and glibc's both include this extension to
POSIX, but macOS's does not, and so even with our bootstrap sed we
cannot use the \> extension when built and run on macOS.
Unfortunately, there is no alternative form we can use; whilst macOS
implements [[:>:]] as an extension that provides this same feature, and
so do we, the regex(3) implementation in glibc does not, and the only
alternative glibc offers is \b, which neither us nor macOS implement.
We could make the form used conditional on the OS, but that starts to
get messy once other Linux libcs enter the picture, which in theory we
somewhat support.
Rewrite both uses to avoid the need for \>. For gen_table, use a pattern
to match the identifier that is precisely the (non-extended) C99
[23 lines not shown]
[LoopVectorize] Add llvm.loop.vectorize.fp_unsafe.{enable,disable} metadata (#219167)
Add a new per-loop metadata key llvm.loop.vectorize.fp_unsafe to
explicitly control whether the Loop Vectorizer may apply floating-point
transforms that change the computed result:
!{!"llvm.loop.vectorize.fp_unsafe.enable"} ; allowed
!{!"llvm.loop.vectorize.fp_unsafe.disable"} ; suppressed
The hint governs both places where this is currently implied by
vectorize.enable.
- allowReordering() - reassociation of FP reductions
- isPotentiallyUnsafe() - vectorization on targets whose vector FP
semantics differ from their scalar semantics
When absent, both retain their existing behaviour: vectorize.enable or
an explicit vector width > 1 grants the relaxation. When present, the
hint takes precedence over that default.
[2 lines not shown]
lang/ruby33: update to 3.3.14
3.3.14 (2026-11-18)
This release fixes seven vulnerabilities have been discovered in Ruby's
regular expression engine and in the case conversion of strings.
* GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings:
Ruby has a one-byte heap-based buffer overflow in the case conversion of
strings. Changing the case of a crafted string may allow remote code
execution. We are aware of PoCs that prove this flaw can be used to
trigger RCE in some scenarios.
* GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation:
Ruby has a double free in its regular expression engine. Compiling a
crafted regular expression pattern may allow remote code execution in
applications that compile attacker-controlled patterns. We are aware of
PoCs that prove this flaw can be used to trigger RCE in some scenarios.
[77 lines not shown]
[SystenZ][z/OS] Beautify HLASM output
Instructions are currently indented by 2 spaces, which makes the output
hard to read. This changes increases the indentation to 10, which improves
the readability. The indent is now controlled by a constant instead of
hard-coded spaces.
[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'
Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add support for host_eval so that SPMD kernels can be used
This patch adds support for host_eval so that SPMD kernels and in the future
num_threads and other clauses can be implemented correctly.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add support for omp teams
This patch adds support for the OpenMP 'teams' directive, both standalone
and as the combined `target teams` construct. isCombinableLeaf now also
recognizes teams, so an explicitly-nested `target` + `teams` pair gets
the same omp.combined marking as the combined case.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add initial support for distribute
This patch adds initial support for the OpenMP 'distribute' directive. Basic
code generation for the standalone and combined cases is introduced. Support
for clauses will be added in the future. The composite 'teams distribute
parallel for' form will be added in a subsequent patch.
Assisted-by: Cursor / Claude Sonnet 5 High
zsh-completion: update for new options and sub-commands
Complete options for pkg config and shared libraries for pkg shlib.
Handle pkg repositories, pkg rwhich, pkg checksum and pkg unregister.
Add some new configuration options and command options.
nuageinit: Fix typo, whitespace, and lua style in new test
Fixes: e82b8378de19 ("nuageinit: Also add -n to pw usermod and pw groupshow")
Sponsored by: The FreeBSD Foundation