Skip to content

sha2: tweak riscv_zknh backend - #929

Open
newpavlov wants to merge 7 commits into
masterfrom
sha2/tweak_riscv
Open

newpavlov wants to merge 7 commits into
masterfrom
sha2/tweak_riscv

Conversation

@newpavlov

@newpavlov newpavlov commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

By following the software backend code the changes remove (unreachable) panic branches from the compact variants and reduce total amount of generated binary code.

Resulting assembly (old vs new):

@newpavlov

newpavlov commented Oct 15, 2026 •

Copy link
Copy Markdown
Member Author

Annoyingly, LLVM seems to be unable to remove unnecessary memset in message schedule: https://rust.godbolt.org/z/q9xbzKhcb (same with opt-level=2)

This branch has not been deployed

No deployments
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.

1 participant