-
Notifications
You must be signed in to change notification settings - Fork 232
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
chore(ssa): Replace JmpIf with BrIf #1193
Conversation
Co-authored-by: kevaundray <kevtheappdev@gmail.com>
Just need to run cargo fmt as I did the suggestion from inside of Github web IDE |
Lets see if we can get #1114 as the only commit in the next release, by delaying this PR for roughly an hour |
This PR looks more like what I had in mind with regard to having an explicit else destination without fallthrough. Can you elaborate on the naming though? I suppose "jump if (cond)" is technically not right if we're always jumping and just changing where we jump based on the cond. Similarly though, "branch if (cond)" seems wrong as well for the same reason. Barring a single correct answer, I'd like to keep both the conditional jump and unconditional instructions with similar naming schemes. So either both Jmp or both Br currently. |
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.
Thanks 👍
* master: chore: update flake version to match current release (#1204) feat!: Switch to aztec_backend that uses upstream BB & UltraPlonk (#1114) chore(ssa refactor): Add Context structs and start ssa gen pass (#1196) chore(ssa): Replace JmpIf with BrIf (#1193) chore(noir): Release 0.4.1 (#1164) chore(ssa refactor): Add DenseMap and SparseMap types (#1184) feat: bump noir-source-resolver version (#1182) chore(deps): bump h2 from 0.3.16 to 0.3.18 (#1186) fix(nargo): restore `nargo codegen-verifier` functionality (#1185) chore: simplify setup code in `noir_integration` test (#1180) feat: Add Poseidon-BN254 hash functions (#1176)
JmpIf
isn't sufficient for encoding block arguments for the fall through successor. It is also more convenient if block terminator instructions describe all successors, such that we do not have to infer fall throughs from some block ordering.Checklist
cargo fmt
with default settings.Documentation needs
Additional context