[InstSimplify] simplify `(x+C1)/C2 <= x` when `C1 < C2` (#246898)
The expression `(x+C1)/C2 <= x` is always true when `C1 < C2`
([alive2](https://alive2.llvm.org/ce/z/MFoBk8)). The `div_ceil`
operation is an instance of the LHS, so this pattern naturally comes up
when comparing the result of `div_ceil` with `x` or values known to be
`>= x`.
The original case I ran into (that currently does not eliminate the
bounds check: https://godbolt.org/z/6hzzf6j9z) is:
```rust
pub fn first_quarter(src: &[u8]) -> &[u8] {
&src[..src.len().div_ceil(4)]
}
```
The implementation is basically by analogy with the multiplication rule
below.
[GlobalISel] Pick a sub-register result class that has the value type (#237650)
Yak shave for #235976.
`getMatchingSubClassWithSubRegs()` breaks ties between register classes
covering
the same registers by class order, so it can pick one that cannot hold
the
extracted value: X86 `sub_xmm` of a `v4i32` got `FR16X` instead of
`VR128X`, and
instruction selection rejected the resulting COPY. The GlobalISel
emitter now
prefers a class that has the extracted value's type; only the X86 tables
change.
Test:
`llvm/test/TableGen/GlobalISelEmitter/extract-subreg-result-class.td`.
AI tool use: developed with Codex CLI assistance under the contributor's
direction.
[mlir][tensor] Implement InferIntRangeInterface for scalar/tensor bridge ops
Implement integer range inference for `tensor.extract`,
`tensor.from_elements`, `tensor.insert`, and `tensor.splat`, mirroring
the existing `vector` dialect implementations. The range of a tensor
value bounds all of its elements, so:
- `tensor.extract` and `tensor.splat` forward the range of their
tensor/scalar input.
- `tensor.insert` produces the union of the scalar and destination
ranges.
- `tensor.from_elements` produces the union of the element ranges, or
the maximal range for an empty tensor.
This lets integer range analysis flow through scalars that are
round-tripped through tensors, including single-element tensors such as
`tensor<i32>` operated on by elementwise `arith` ops.
Since dynamically shaped tensors can now have a known constant range,
[6 lines not shown]
powerpc: Add first Linuxulator support (ELFv1, BE, powerpc64)
Introduce the first cut of the Linuxulator for powerpc64. This was a
GSoC project for 2022, and consists of the following:
* ELFv1
* Limited shared page (no timekeep fallback)
* Most, if not all, syscalls are implemented, all common ones, no
arch-specific ones.
At completion of the GSoC period this was able to run through the LTP
test suite, with a very high pass rate. More work remains, as always,
and will be done as needed.
Further work is still necessary, but this lays the groundwork. Expected
future work includes:
* ELFv2
* 32-bit support (running legacy Linux applications)
[4 lines not shown]
[llvm-mca][X86] Add AVX-VNNI-INT8/16 instruction tests (#246687)
Add resources-avxvnniint8.s and resources-avxvnniint16.s to test
AVX_VNNI_INT8 and AVX_VNNI_INT16 instructions (rr/rm, xmm/ymm).
Fixes #246298
[Option] Let a tool parse its command line into an options struct (#246881)
Follow-up to #246766: Generalize `OptionsStruct` so that a tool, not
only a library, can get its options as a generated struct.
opt::parseToolArgs parses argv with OptTable::parseArgs, keeping
response files and typo suggestions, and fills the struct.
OptionsStruct<""> gives a tool's struct internal linkage.
`RepeatedField` appends each occurrence's whole value, for options such
as -extra-arg whose values contain commas.
The parts a struct needs without cl:: move from LibraryOptions.h to the
new OptionsStruct.h, and LibraryOptTable becomes OptionsStructTable.
Convert clang-diff.
LLM-aided
sysutils/py-Glances: Skip tests that cannot pass in pkgsrc
Deselect the tests that need chevron or pySMART, neither of which is
packaged, and, on platforms other than Linux, the nl80211 tests that
need netlink sockets.
On NetBSD and OpenBSD also deselect test_phys_core_returns_int.
psutil cannot count physical cores there and documents
cpu_count(logical=False) as always None.
p5-Sereal: update to 7.009.
7.009
* Fix Encoder builds on threaded Perl 5.14 and 5.16.
* Fix Decoder test portability on older and extended-precision
Perls. Fix bundled Zstd builds on Windows without Unix rm.
* Broaden portability CI and require regeneration, CPAN Testers
review and successful CI for the release commit before publication.
7.008
* Improve Encoder and Decoder performance with faster scalar and
varint handling, more efficient string deduplication, and reuse of
Zstd contexts. Reduce Encoder buffer allocation and retention.
* Preserve compression, readonly and integer aliasing settings when
FREEZE/THAW callbacks reuse their encoder or decoder.
* Fix empty UTF-8 validation and builds with assertions enabled.
Existing wire formats and protocol compatibility are preserved.
Thanks to Steffen Mueller for these improvements and fixes.
[23 lines not shown]
p5-Sereal-Encoder: update to 7.009.
7.009
* Fix string deduplication builds on threaded Perl 5.14 and 5.16.
* Fix bundled Zstd builds on Windows without a Unix rm command.
* Expand portability CI. Require regeneration, CPAN Testers review
and successful CI for the release commit before publication.
7.008
* Speed up scalar, string and small-varint encoding, and reduce
stack usage by keeping larger helpers out of the hot path.
* Reduce allocation overhead for dedupe_strings and
aliased_dedupe_strings with a single C string table. Preserve
binary/UTF-8 distinctions and reference tracking.
* Reuse Zstd compression contexts on reusable encoders for payloads
up to 512 KiB, avoiding repeated context allocation.
* Improve buffer growth and container preallocation. Limit retained
buffers on reusable encoders to 1 MiB after large payloads, and
strengthen buffer size and overflow checks.
[32 lines not shown]
p5-Sereal-Decoder: update to 7.009.
7.009
* Make the Zstd re-entrancy test independent of hash order and
temporary reference counts, and distinguish compression levels.
* Fix false regression-test failures on older Perls and builds
with extended-precision NVs (issues #352 and #353).
* Fix bundled Zstd builds on Windows without a Unix rm command.
* Expand portability CI. Require regeneration, CPAN Testers review
and successful CI for the release commit before publication.
7.008
* Speed up small-varint decoding and arrays of untracked scalar
values. Reduce temporary allocations and stack usage while
preserving recursion limits, aliasing and readonly options.
* Reuse Zstd decompression contexts on reusable decoders instead of
allocating a context for each packet.
* Preserve readonly and integer aliasing options when THAW callbacks
reuse the decoder.
[37 lines not shown]
p5-Email-Address-XS: update to 1.06.
1.06 Thu Nov 05 13:39:23 2026
- fix formatting phrase input which contains "=?" substring but is not MIME word (CVE-2026-120362)
p5-Data-Dump: update to 1.28.
2026-11-23 Breno G. de Oliveira <garu at cpan.org>
Release 1.28
Fix regex tests in older perls.
2026-11-23 Breno G. de Oliveira <garu at cpan.org>
Release 1.27
Skip some regexp tests in older perls.
p5-Cpanel-JSON-XS: update to 4.83.
4.83 2026-11-23 (rurban)
- Security fixes, reported by Albert Gierlach (rivit):
* decode: free the temporary encoding name when the input starts with
a UTF-16 or UTF-32 BOM (leak of a scalar per call, successful or
not). CVE-2026-134876
* decode: with allow_tags free the enclosing arrays and hashes when
a THAW method dies (leak). CVE-2026-134877
* decode: free the key of every enclosing object member when a
filter_json_object or filter_json_single_key_object callback dies
or a THAW method dies (leak). CVE-2026-134878
* encode: encode_stringify freed neither its string copy nor the
overloaded object when encode_str croaked on malformed UTF-8,
e.g. with allow_stringify (leak). CVE-2026-134879
- encode: no signed overflow negating IV_MIN with JSON_TYPE_INT, and
no read of uninitialized memory when checking short formatted numbers
and bignum strings for inf and nan.
[2 lines not shown]
misc/multitail: update to 7.1.6
This update fixes shell injection in '-ex' command execution
along with other changes. The fix causes a breaking change.
Breaking change explained here:
https://github.com/folkertvanheusden/multitail/commit/84f304e