-
Notifications
You must be signed in to change notification settings - Fork 102
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
Remove reset instruction #1718
base: main
Are you sure you want to change the base?
Remove reset instruction #1718
Conversation
a1ad8c6
to
5f52001
Compare
555ac0d
to
fec80a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: fec80a8 | Previous: 0bdbbd2 | Ratio |
---|---|---|---|
jit-benchmark/sqrt_879882356 |
3616 ns/iter (± 4 ) |
2735 ns/iter (± 3 ) |
1.32 |
jit-benchmark/sqrt_1882356 |
2861 ns/iter (± 12 ) |
2165 ns/iter (± 4 ) |
1.32 |
jit-benchmark/sqrt_1187956 |
2857 ns/iter (± 6 ) |
2126 ns/iter (± 4 ) |
1.34 |
jit-benchmark/sqrt_56 |
1687 ns/iter (± 2 ) |
1261 ns/iter (± 1 ) |
1.34 |
This comment was automatically generated by workflow using github-action-benchmark.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but maybe you want someone else to also take a look?
has a bunch of conflicts now =/ |
Did you base this PR off some other PR that was merged? Then you need to merge |
…eset-instr-fix3 Co-authored-by: Leandro Pacheco <[email protected]>
Fixing the conflict craze in #1718
Remove the
_reset
instruction in the dispatcher.When turning asm into pil, we have a dispatcher which first resets all registers and jumps to the correct part of the ROM. As a result, the write registers are unconstrained on the first row.
After this PR, registers are reset after calling
return
, just like for thepc
. This removes the need for the_reset
instruction, as long as we constrain the write registers to be 0 on the first row.Here are the tradeoffs of this change:
instr__reset
p_instr__reset
(negligible)