Enable SLP for O2/Os optimization levels
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- compilers, performance
調査の方向性
Start by reading the linked LLVM issue #246274 and the related Rust issue #43702 to understand the frontend behavior implicated here. Reproduce the example with opt-level=2 and opt-level=s, then trace how Rust lowers the array construction and XOR operations. Done means the generated code uses word-wise or otherwise optimized XOR operations at those levels; the issue names no Rust source file or test to start from.
索引モデルが issue の本文から書いたものです。
説明
The following Rust code:
const N: usize = 16;
pub fn xor_into(a: &[u8; N], b: &[u8; N], dst: &mut [u8; N]) {
*dst = core::array::from_fn(|i| a[i] ^ b[i]);
}
Results in assembly which performs XOR byte-by-byte with opt-level=2/s , see: https://rust.godbolt.org/z/xW4xKE8a6
Such code is extremely common in cryptography and arguably should use at least word-wise XORing with opt-level=2/s.
In the LLVM issue it was identified as a mostly frontend issue.
Relevant issues: https://github.com/rust-lang/rust/issues/43702 https://github.com/RustCrypto/utils/issues/1621
- 主要言語
- Rust
- スター
- 123k
- フォーク
- 16.6k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 532
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rust のほかの issue
-
C-bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
rust-lang/rust#166722 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
A-attributes relnotes relnotes-needs-review relnotes-tracking-issue T-compiler T-lang
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
A-run-make C-bug T-bootstrap
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
Tracking issue for release notes of #161531: Remove `T: Send + Sync` bound from `Arc::downcast`オープンrelnotes relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
A-str A-Unicode relnotes relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tamatebako/tebako#1155 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
swc-project/swc-next-issues#1148 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
registrystack/registry-stack#2828 ·
メンテナーはふだん 1 日以内に返信
-
agent:triaged arch-audit bug priority:p1
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
SocketDev/socket-patch#2364 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信