igzip/riscv64: Optimize adler32_rvv for VLEN=128#390
Closed
leiwen2025 wants to merge 1 commit intointel:masterfrom
Closed
igzip/riscv64: Optimize adler32_rvv for VLEN=128#390leiwen2025 wants to merge 1 commit intointel:masterfrom
leiwen2025 wants to merge 1 commit intointel:masterfrom
Conversation
Contributor
|
@leiwen2025 could you update Release notes saying Adler32 has been optimized for RISCV? |
Contributor
Author
Done. I've updated the Release notes. |
Contributor
|
@sunyuechi could you review this PR? Thanks! |
sunyuechi
reviewed
Feb 8, 2026
|
|
||
| vsetvli zero, t0, e32, m8, ta, ma | ||
| vmv.v.i v8, 0 | ||
| vmv.v.i v24, 0 |
sunyuechi
reviewed
Feb 8, 2026
| vsetvli zero, t0, e16, m4, ta, ma | ||
| vsetvli zero, t0, e16, m2, ta, ma | ||
| vwaddu.wv v24, v24, v16 | ||
| vwaddu.wv v24, v24, v18 |
Contributor
There was a problem hiding this comment.
The above 2 lines are just vwaddu.vv v24, v16, v18? And vwaddu.vv doesn't require register zero-clearing either.
Contributor
Author
There was a problem hiding this comment.
vwaddu.vv v24, v16 ,v18 cannot implement the correct logic. The logic should be v24 += v16 + v18
sunyuechi
reviewed
Feb 9, 2026
| li t0, 32 | ||
| bltu a2, t0, tail_bytes | ||
|
|
||
| vsetvli zero, t0, e32, m8, ta, ma |
Contributor
|
LGTM (please squash commits). |
Signed-off-by: WenLei <lei.wen2@zte.com.cn>
3ff06c7 to
9dd9b26
Compare
Contributor
|
This is merged now, thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR optimizes the adler32_rvv implementation for vlen=128.
The optimization has been verified on the SG2044 platform: