-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Fix memcpyopt to allow multiple passes of optimisations
#7657
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
89a3263
memcpyopt also considering memclear and memcpy_val and opt manager ru…
xunilrj 1d0fa8e
consider memcpy_bytes and better names for opt checks
xunilrj cac6c9c
early break if no optimisations were applied
xunilrj 3bd2280
moving forc cli tests to the snapshot suite
xunilrj ef3945b
script to update predicate ids
xunilrj 3b3ea4e
update tests
xunilrj 9dcf15a
fix script for mac
xunilrj 1f84b1b
update tests
xunilrj 71e6395
update tests
xunilrj e04679c
update tests
xunilrj b19c947
update tests
xunilrj 00b3429
update tests
xunilrj a1cbe70
update tests
xunilrj 67966a8
pr suggestions
xunilrj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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
5 changes: 5 additions & 0 deletions
5
test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract/snapshot.toml
This file contains hidden or 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,5 @@ | ||
| cmds = [ | ||
| "forc test --logs --path {root}", | ||
| "forc test --raw-logs --path {root}", | ||
| "forc test --logs --raw-logs --path {root}", | ||
| ] |
File renamed without changes.
72 changes: 72 additions & 0 deletions
72
test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract/stdout.snap
This file contains hidden or 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,72 @@ | ||
| --- | ||
| source: test/src/snapshot/mod.rs | ||
| --- | ||
| > forc test --logs --path test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract | ||
| exit status: 0 | ||
| output: | ||
| Building test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract | ||
| Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-assert) | ||
| Compiling contract test_contract (test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract) | ||
| Finished debug [unoptimized + fuel] target(s) [1.04 KB] in ??? | ||
| Running 2 tests, filtered 0 tests | ||
|
|
||
| tested -- test_contract | ||
|
|
||
| test test_log_4 ... ok (???, 604 gas) | ||
| decoded log values: | ||
| 4, log rb: 1515152261580153489 | ||
| test test_log_2 ... ok (???, 604 gas) | ||
| decoded log values: | ||
| 2, log rb: 1515152261580153489 | ||
|
|
||
| test result: OK. 2 passed; 0 failed; finished in ??? | ||
|
|
||
| Finished in ??? | ||
|
|
||
| > forc test --raw-logs --path test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract | ||
| exit status: 0 | ||
| output: | ||
| Building test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract | ||
| Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-assert) | ||
| Compiling contract test_contract (test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract) | ||
| Finished debug [unoptimized + fuel] target(s) [1.04 KB] in ??? | ||
| Running 2 tests, filtered 0 tests | ||
|
|
||
| tested -- test_contract | ||
|
|
||
| test test_log_4 ... ok (???, 604 gas) | ||
| raw logs: | ||
| [{"LogData":{"data":"0000000000000004","digest":"8005f02d43fa06e7d0585fb64c961d57e318b27a145c857bcd3a6bdb413ff7fc","id":"0000000000000000000000000000000000000000000000000000000000000000","is":10368,"len":8,"pc":11288,"ptr":12464,"ra":0,"rb":1515152261580153489}}] | ||
| test test_log_2 ... ok (???, 604 gas) | ||
| raw logs: | ||
| [{"LogData":{"data":"0000000000000002","digest":"cd04a4754498e06db5a13c5f371f1f04ff6d2470f24aa9bd886540e5dce77f70","id":"0000000000000000000000000000000000000000000000000000000000000000","is":10368,"len":8,"pc":11288,"ptr":12464,"ra":0,"rb":1515152261580153489}}] | ||
|
|
||
| test result: OK. 2 passed; 0 failed; finished in ??? | ||
|
|
||
| Finished in ??? | ||
|
|
||
| > forc test --logs --raw-logs --path test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract | ||
| exit status: 0 | ||
| output: | ||
| Building test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract | ||
| Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-assert) | ||
| Compiling contract test_contract (test/src/e2e_vm_tests/test_programs/should_pass/forc/test_contract) | ||
| Finished debug [unoptimized + fuel] target(s) [1.04 KB] in ??? | ||
| Running 2 tests, filtered 0 tests | ||
|
|
||
| tested -- test_contract | ||
|
|
||
| test test_log_4 ... ok (???, 604 gas) | ||
| decoded log values: | ||
| 4, log rb: 1515152261580153489 | ||
| raw logs: | ||
| [{"LogData":{"data":"0000000000000004","digest":"8005f02d43fa06e7d0585fb64c961d57e318b27a145c857bcd3a6bdb413ff7fc","id":"0000000000000000000000000000000000000000000000000000000000000000","is":10368,"len":8,"pc":11288,"ptr":12464,"ra":0,"rb":1515152261580153489}}] | ||
| test test_log_2 ... ok (???, 604 gas) | ||
| decoded log values: | ||
| 2, log rb: 1515152261580153489 | ||
| raw logs: | ||
| [{"LogData":{"data":"0000000000000002","digest":"cd04a4754498e06db5a13c5f371f1f04ff6d2470f24aa9bd886540e5dce77f70","id":"0000000000000000000000000000000000000000000000000000000000000000","is":10368,"len":8,"pc":11288,"ptr":12464,"ra":0,"rb":1515152261580153489}}] | ||
|
|
||
| test result: OK. 2 passed; 0 failed; finished in ??? | ||
|
|
||
| Finished in ??? |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.