-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ssa): Perform dead instruction elimination on intrinsic functions (
- Loading branch information
1 parent
9004181
commit 3fe3f8c
Showing
4 changed files
with
78 additions
and
14 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
crates/nargo_cli/tests/compile_success/intrinsic_die/Nargo.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "intrinsic_die" | ||
type = "bin" | ||
authors = [""] | ||
compiler_version = "0.6.0" | ||
|
||
[dependencies] |
9 changes: 9 additions & 0 deletions
9
crates/nargo_cli/tests/compile_success/intrinsic_die/src/main.nr
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use dep::std; | ||
|
||
// This test checks that we perform dead-instruction-elimination on intrinsic functions. | ||
|
||
fn main(x: Field) { | ||
let bytes = x.to_be_bytes(32); | ||
|
||
let hash = std::hash::pedersen([x]); | ||
} |
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
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