perf(loader): patch mwaitx/clwb in-place to NOP and accelerate clzero loops (stable-amd) #176

Open
Vladimir-Human wants to merge 1 commit from upstream-pr/176 into stable-amd
Vladimir-Human commented 2026-11-28 17:54:01 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by Vladimir-Human on 2026-11-28T17:54:01Z.


Re-port of #29 onto stable-amd (v26.11.6, 75022ba).
Supersedes #29 (which targeted main and became conflicting/closed across disjoint branch histories).

Verification on stable-amd (commit 01e39a0, Cargo.lock untouched)

  • cargo check --workspace --tests --locked: passed
  • cargo test --locked -p victory-loader:
test result: ok. 63 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.62s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5543028053 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/176). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T17:54:01Z. --- Re-port of #29 onto `stable-amd` (`v26.11.6`, `75022ba`). Supersedes #29 (which targeted `main` and became conflicting/closed across disjoint branch histories). ### Verification on `stable-amd` (commit `01e39a0`, `Cargo.lock` untouched) - `cargo check --workspace --tests --locked`: passed - `cargo test --locked -p victory-loader`: ``` test result: ok. 63 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.62s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ```
PastiiJay commented 2026-11-28 17:57:43 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-28T17:57:43Z.


thanks for re-porting it onto stable-amd! we'll A/B it on our machines for the next build and credit you if it holds up 🙏

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7243421193 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/176#issuecomment-7243421193). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-28T17:57:43Z. --- thanks for re-porting it onto stable-amd! we'll A/B it on our machines for the next build and credit you if it holds up 🙏
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/176:upstream-pr/176'
git switch 'upstream-pr/176'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'stable-amd'
git merge --no-ff 'upstream-pr/176'
git switch 'upstream-pr/176'
git rebase 'stable-amd'
git switch 'stable-amd'
git merge --ff-only 'upstream-pr/176'
git switch 'upstream-pr/176'
git rebase 'stable-amd'
git switch 'stable-amd'
git merge --no-ff 'upstream-pr/176'
git switch 'stable-amd'
git merge --squash 'upstream-pr/176'
git switch 'stable-amd'
git merge --ff-only 'upstream-pr/176'
git switch 'stable-amd'
git merge 'upstream-pr/176'
git push origin 'stable-amd'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab!176
No description provided.