Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
MINIMAL_RUST: 1.79.0 # Minimal Supported Rust Version
MINIMAL_RUST: 1.89.0 # Minimal Supported Rust Version

jobs:
# Workaround for github CI dropping env var expansion in matrix strategy
Expand Down
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
_There are no unreleased changes in the pipeline at the moment._


## [3.0.0] - 2025-10-04

### Changed

- AVX-512 types do not require the `nightly` feature anymore
- Bumped MSRV to 1.89.0.


## [2.0.1] - 2025-05-04

### Fixed
Expand All @@ -34,7 +42,7 @@ _There are no unreleased changes in the pipeline at the moment._

### Fixed

- Adapt nightly feature to latest nightly changes.
- Adapt `nightly` feature to latest nightly changes.


## [1.0.0] - 2024-01-05
Expand All @@ -44,7 +52,8 @@ _There are no unreleased changes in the pipeline at the moment._
- First tagged release of pessimize.


[Unreleased]: https://github.com/HadrienG2/pessimize/compare/v2.0.1...HEAD
[Unreleased]: https://github.com/HadrienG2/pessimize/compare/v3.0.0...HEAD
[3.0.0]: https://github.com/HadrienG2/pessimize/compare/v2.0.1...v3.0.0
[2.0.1]: https://github.com/HadrienG2/pessimize/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/HadrienG2/pessimize/compare/v1.0.1...v2.0.0
[1.0.1]: https://github.com/HadrienG2/pessimize/compare/v1.0.0...v1.0.1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name = "pessimize"
version = "2.0.1"
authors = ["Hadrien G. <[email protected]>"]
edition = "2021"
rust-version = "1.79.0"
rust-version = "1.89.0"
description = "More efficient Rust compiler optimization barriers"
repository = "https://github.com/HadrienG2/pessimize/"
license = "MPL-2.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Continuous
Integration](https://img.shields.io/github/actions/workflow/status/HadrienG2/pessimize/ci.yml?branch=master)](https://github.com/HadrienG2/pessimize/actions?query=workflow%3A%22Continuous+Integration%22)
![Requires rustc
1.79.0+](https://img.shields.io/badge/rustc-1.79.0+-lightgray.svg)
1.89.0+](https://img.shields.io/badge/rustc-1.89.0+-lightgray.svg)

Microbenchmarking is a subtle exercise to begin with, and the lack of
lightweight optimization barriers on stable Rust makes it even more difficult.
Expand Down
17 changes: 7 additions & 10 deletions src/arch/x86_family.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
use target_arch::__m128;
#[cfg(any(target_feature = "avx2", doc))]
use target_arch::__m256i;
#[cfg(all(
feature = "nightly",
any(all(target_feature = "avx512vl", target_feature = "avx512bf16"), doc)
))]
use target_arch::{__m128bh, __m256bh};
#[cfg(any(target_feature = "sse2", doc))]
use target_arch::{__m128d, __m128i};
#[cfg(any(target_feature = "avx", doc))]
Expand Down Expand Up @@ -98,17 +93,16 @@
);

/// AVX-512 specific functionality
#[cfg_attr(
feature = "nightly",
doc(cfg(all(feature = "nightly", target_feature = "avx512f")))
)]
#[cfg(all(feature = "nightly", any(target_feature = "avx512f", doc)))]
#[doc(cfg(target_feature = "avx512f"))]

Check failure on line 96 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / lints-i686 (stable, --no-default-features --features=alloc)

`#[doc(cfg)]` is experimental

Check failure on line 96 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / lints-native (stable, --no-default-features)

`#[doc(cfg)]` is experimental

Check failure on line 96 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, --no-default-features)

`#[doc(cfg)]` is experimental

Check failure on line 96 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, --no-default-features --features=alloc, -C target-cpu=native)

`#[doc(cfg)]` is experimental

Check failure on line 96 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, -C target-cpu=native)

`#[doc(cfg)]` is experimental

Check failure on line 96 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (stable, --features=safe_arch, -C target-cpu=native)

`#[doc(cfg)]` is experimental
#[cfg(any(target_feature = "avx512f", doc))]
pub mod avx512 {
use super::*;
use crate::Pessimize;
use core::arch::asm;
#[cfg(any(target_feature = "avx512bf16", doc))]
use target_arch::__m512bh;
#[cfg(any(all(target_feature = "avx512vl", target_feature = "avx512bf16"), doc))]
use target_arch::{__m128bh, __m256bh};
use target_arch::{__m512, __m512d, __m512i};

// Basic register type support
Expand Down Expand Up @@ -152,7 +146,7 @@
$(
// This is one of the primitive Pessimize impls on which
// the PessimizeCast/BorrowPessimize stack is built
#[$doc_cfg]

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / lints-i686 (stable, --no-default-features --features=alloc)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / lints-i686 (stable, --no-default-features --features=alloc)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / lints-native (stable, --no-default-features)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / lints-native (stable, --no-default-features)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, --no-default-features)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, --no-default-features)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, --no-default-features --features=alloc, -C target-cpu=native)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, --no-default-features --features=alloc, -C target-cpu=native)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, -C target-cpu=native)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (1.89.0, -C target-cpu=native)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (stable, --features=safe_arch, -C target-cpu=native)

`#[doc(cfg)]` is experimental

Check failure on line 149 in src/arch/x86_family.rs

View workflow job for this annotation

GitHub Actions / test-native (stable, --features=safe_arch, -C target-cpu=native)

`#[doc(cfg)]` is experimental
unsafe impl Pessimize for Mask<$mask_impl> {
#[inline]
fn hide(mut self) -> Self {
Expand Down Expand Up @@ -731,6 +725,9 @@
}
}

// This is nightly-only even though the rest of avx512 is not nightly only
// anymore because we can't easily test without safe_arch or portable_simd
// and portable_simd doesn't have support for AVX-512 yet.
#[cfg(all(feature = "nightly", target_feature = "avx512f"))]
mod avx512 {
use super::*;
Expand Down
Loading