Skip to content
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: Add Instruction::Noop #6899

Merged
merged 8 commits into from
Dec 20, 2024
Merged

chore: Add Instruction::Noop #6899

merged 8 commits into from
Dec 20, 2024

Conversation

jfecher
Copy link
Contributor

@jfecher jfecher commented Dec 20, 2024

Description

Problem*

Resolves #6842

Summary*

Not expected to affect things much, but adds a no-op instruction to ssa as an alternative to the instructions.retain(..) pattern. Currently I've only changed 2 passes to use this but we can change more in the future.

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@jfecher jfecher marked this pull request as ready for review December 20, 2024 19:46
Copy link
Contributor

github-actions bot commented Dec 20, 2024

Peak Memory Sample

Program Peak Memory
keccak256 78.48M
workspace 123.62M
regression_4709 422.91M
ram_blowup_regression 1.58G
private-kernel-tail 201.60M
private-kernel-reset 716.87M
private-kernel-inner 291.67M
parity-root 171.93M

Copy link
Contributor

github-actions bot commented Dec 20, 2024

Compilation Sample

Program Compilation Time %
sha256_regression 1.389s 3%
regression_4709 0.811s 5%
ram_blowup_regression 15.683s 1%
rollup-base-public 112.221s -6%
rollup-base-private 99.681s 1%
private-kernel-tail 1.069s -7%
private-kernel-reset 7.613s 5%
private-kernel-inner 2.225s 0%
parity-root 0.786s 1%
noir-contracts 85.330s -6%

Copy link
Contributor

github-actions bot commented Dec 20, 2024

Execution Sample

Program Execution Time %
sha256_regression 0.640s 1%
regression_4709 0.405s 3%
ram_blowup_regression 4.488s -1%
rollup-base-public 21.330s -3%
rollup-base-private 19.926s 0%
private-kernel-tail 0.712s -2%
private-kernel-reset 1.487s -1%
private-kernel-inner 0.980s -2%
parity-root 0.535s -1%

Copy link
Contributor

@vezenovm vezenovm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we just need some extra handling for inlining

Copy link
Contributor

github-actions bot commented Dec 20, 2024

Changes to Brillig bytecode sizes

Generated at commit: ab288e365d1cb64098b00fe4c9ae4ec4bf00c632, compared to commit: 913be5b013323449963d31ab00f521f572cfcd67

🧾 Summary (10% most significant diffs)

Program Brillig opcodes (+/-) %
sha256_regression -3 ✅ -0.04%
array_sort -3 ✅ -1.01%

Full diff report 👇
Program Brillig opcodes (+/-) %
hashmap 21,810 (-3) -0.01%
uhashmap 14,016 (-3) -0.02%
sha256_regression 6,917 (-3) -0.04%
array_sort 293 (-3) -1.01%

Copy link
Contributor

github-actions bot commented Dec 20, 2024

Changes to number of Brillig opcodes executed

Generated at commit: ab288e365d1cb64098b00fe4c9ae4ec4bf00c632, compared to commit: 913be5b013323449963d31ab00f521f572cfcd67

🧾 Summary (10% most significant diffs)

Program Brillig opcodes (+/-) %
hashmap -3 ✅ -0.01%
array_sort -3 ✅ -0.57%

Full diff report 👇
Program Brillig opcodes (+/-) %
uhashmap 145,608 (-3) -0.00%
sha256_regression 128,310 (-3) -0.00%
hashmap 54,202 (-3) -0.01%
array_sort 523 (-3) -0.57%

@jfecher jfecher enabled auto-merge December 20, 2024 20:38
@jfecher jfecher added this pull request to the merge queue Dec 20, 2024
Merged via the queue into master with commit 70b255e Dec 20, 2024
85 checks passed
@jfecher jfecher deleted the jf/noop branch December 20, 2024 20:47
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 21, 2024
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 22, 2024
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 22, 2024
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 23, 2024
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 23, 2024
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 24, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 24, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 25, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 25, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 26, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 26, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 27, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 27, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 28, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 28, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 29, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 29, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 30, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 30, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 31, 2024
…ked protocol circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
AztecBot added a commit to AztecProtocol/aztec-packages that referenced this pull request Dec 31, 2024
… circuits (noir-lang/noir#6903)

fix: consistent file_id across installation paths (noir-lang/noir#6912)
fix: bigint builtins are foreigns (noir-lang/noir#6892)
fix: remove unnecessary cast in bit-shift (noir-lang/noir#6890)
chore: Release Noir(1.0.0-beta.1) (noir-lang/noir#6622)
chore: Add `Instruction::Noop` (noir-lang/noir#6899)
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.

Consider adding a no-op instruction to SSA
2 participants