Skip to content

Conversation

quake
Copy link
Member

@quake quake commented Mar 7, 2025

When checking if a register is zero (cmp $0, reg), test reg, reg achieves the same result while using fewer bytes in encoding.

I tested on 3 different machines, got a 1%~4% improvement.

@quake quake requested review from mohanson and xxuejie March 7, 2025 08:23
Copy link
Collaborator

@xxuejie xxuejie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to previous one, please also cherry-pick to develop branch

@quake quake merged commit 0067ebd into nervosnetwork:release-0.24 Mar 9, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants