Skip to content

Commit a4fb77e

Browse files
committed
Bump MSRV of next release and remove AVX-512 from nightly feature
1 parent 0c889fd commit a4fb77e

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
CARGO_INCREMENTAL: 0
2323
RUSTFLAGS: -D warnings
2424
RUSTDOCFLAGS: -D warnings
25-
MINIMAL_RUST: 1.79.0 # Minimal Supported Rust Version
25+
MINIMAL_RUST: 1.89.0 # Minimal Supported Rust Version
2626

2727
jobs:
2828
# Workaround for github CI dropping env var expansion in matrix strategy

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010

11-
_There are no unreleased changes in the pipeline at the moment._
11+
### Changed
12+
13+
- AVX-512 types do not require the `nightly` feature anymore
14+
- Bumped MSRV to 1.89.0.
1215

1316

1417
## [2.0.1] - 2025-05-04
@@ -34,7 +37,7 @@ _There are no unreleased changes in the pipeline at the moment._
3437

3538
### Fixed
3639

37-
- Adapt nightly feature to latest nightly changes.
40+
- Adapt `nightly` feature to latest nightly changes.
3841

3942

4043
## [1.0.0] - 2024-01-05

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name = "pessimize"
1414
version = "2.0.1"
1515
authors = ["Hadrien G. <knights_of_ni@gmx.com>"]
1616
edition = "2021"
17-
rust-version = "1.79.0"
17+
rust-version = "1.89.0"
1818
description = "More efficient Rust compiler optimization barriers"
1919
repository = "https://github.com/HadrienG2/pessimize/"
2020
license = "MPL-2.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Continuous
77
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)
88
![Requires rustc
9-
1.79.0+](https://img.shields.io/badge/rustc-1.79.0+-lightgray.svg)
9+
1.89.0+](https://img.shields.io/badge/rustc-1.89.0+-lightgray.svg)
1010

1111
Microbenchmarking is a subtle exercise to begin with, and the lack of
1212
lightweight optimization barriers on stable Rust makes it even more difficult.

src/arch/x86_family.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ use target_arch::CpuidResult;
1111
use target_arch::__m128;
1212
#[cfg(any(target_feature = "avx2", doc))]
1313
use target_arch::__m256i;
14-
#[cfg(all(
15-
feature = "nightly",
16-
any(all(target_feature = "avx512vl", target_feature = "avx512bf16"), doc)
17-
))]
18-
use target_arch::{__m128bh, __m256bh};
1914
#[cfg(any(target_feature = "sse2", doc))]
2015
use target_arch::{__m128d, __m128i};
2116
#[cfg(any(target_feature = "avx", doc))]
@@ -98,17 +93,16 @@ pessimize_asm_values!(
9893
);
9994

10095
/// AVX-512 specific functionality
101-
#[cfg_attr(
102-
feature = "nightly",
103-
doc(cfg(all(feature = "nightly", target_feature = "avx512f")))
104-
)]
105-
#[cfg(all(feature = "nightly", any(target_feature = "avx512f", doc)))]
96+
#[doc(cfg(target_feature = "avx512f"))]
97+
#[cfg(any(target_feature = "avx512f", doc))]
10698
pub mod avx512 {
10799
use super::*;
108100
use crate::Pessimize;
109101
use core::arch::asm;
110102
#[cfg(any(target_feature = "avx512bf16", doc))]
111103
use target_arch::__m512bh;
104+
#[cfg(any(all(target_feature = "avx512vl", target_feature = "avx512bf16"), doc))]
105+
use target_arch::{__m128bh, __m256bh};
112106
use target_arch::{__m512, __m512d, __m512i};
113107

114108
// Basic register type support
@@ -731,6 +725,9 @@ mod tests {
731725
}
732726
}
733727

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

0 commit comments

Comments
 (0)