-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test CI: Testing TRNG #81
Closed
Closed
Conversation
This file contains 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
is this PR still relevant? Can it be closed? |
korran
added a commit
that referenced
this pull request
Dec 6, 2023
This makes it trivial for the optimizer to realize that a generic method operating on different registers with the same fields can be deduplicated, since they now use the exact same generic type parameters. (While testing PR #81, I noticed that the optimizer was intermittently creating multiple copies of inline(never) functions with the register address hard-coded; this change makes that impossible). Codegen diff: --- /tmp/old-9f68fe1b8c2218acce41fac1d49b76f9c55f4b73 2023-02-21 23:58:34.453745653 -0800 +++ /tmp/new-070db26dd29cb3804a14c2c8b760843c3d0c34cd 2023-02-21 23:59:17.069261052 -0800 @@ -23,10 +23,10 @@ [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 1] .text PROGBITS 00000000 001000 001acf 00 AXM 0 0 16 00 .text target/riscv32imc-unknown-none-elf/debug/deps/hmac384-53a16658694a446f - [ 1] .text PROGBITS 00000000 001000 002dcc 00 AXM 0 0 16 + [ 1] .text PROGBITS 00000000 001000 002d8c 00 AXM 0 0 16 00 .text target/riscv32imc-unknown-none-elf/debug/deps/ecc384-29620b311093f9b3 - [ 1] .text PROGBITS 00000000 001000 0042f0 00 AXM 0 0 16 + [ 1] .text PROGBITS 00000000 001000 004390 00 AXM 0 0 16 00 .text target/riscv32imc-unknown-none-elf/debug/deps/doe-a6c703fbbd8279c3 [ 1] .text PROGBITS 00000000 001000 0001b0 00 AX 0 0 2 I looked at the disassembly for the ecc size regression, and this seems to be optimizer heuristics causing spooky action at a distance; the optimizer removed some of the keyvault code from the original Ecc384::sign() (I guess it figured out that the test-case didn't invoke it?), but not the new one.
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.
No description provided.