-
Notifications
You must be signed in to change notification settings - Fork 836
Intrinsic: dead.if.unused #8268
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
Open
kripken
wants to merge
51
commits into
WebAssembly:main
Choose a base branch
from
kripken:callsIfMoved
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
5daee4c
go
kripken 7ce3151
work
kripken 477e77b
work
kripken 83583cb
work
kripken 073b39e
fmt
kripken f129e51
test
kripken 075fd15
work
kripken d540a96
work
kripken 4d8b7a5
builds
kripken e38e29c
progress
kripken c78dc41
finish
kripken 8ad0110
works
kripken d876266
UNDO effects.h
kripken 31f6e5c
yolo
kripken 879dc79
works
kripken eadd3dc
rename
kripken a49fe26
rename
kripken c2c1d9d
Merge remote-tracking branch 'origin/main' into callsIfMoved
kripken dce83d8
refactor
kripken 93234e2
fix
kripken eeba297
fmrt
kripken 902a233
work
kripken 2e287a2
work
kripken 45650e1
work
kripken 017f8e5
work
kripken 4097eec
work
kripken 694e4f9
work
kripken a815fb7
simpl
kripken 8214606
Merge remote-tracking branch 'origin/main' into callsIfMoved
kripken 6a88e93
fmrt
kripken c4ec997
UNDO
kripken 4080447
renamings
kripken 817dc64
finish
kripken 130e5a1
finish
kripken d1eec83
finish
kripken a266a05
work
kripken e474857
work
kripken 8c24e14
Merge remote-tracking branch 'origin/main' into callsIfMoved
kripken 8e89cb4
Merge remote-tracking branch 'origin/main' into callsIfMoved
kripken 0b4d4f9
hhow?
kripken 7cac194
hhow?
kripken 0658143
finish
kripken a2aea65
fix
kripken a8857b5
fix
kripken 9b33ec1
fuzz
kripken ed1466f
test roundtripping of function-level annotation
kripken dafbdbe
simpler
kripken 708f8b2
just use bool
kripken f3c73c6
fix
kripken 1ad327c
unfuzz
kripken 6544c89
default
kripken 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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ;; RUN: wasm-opt -all %s -S -o - | filecheck %s | ||
| ;; RUN: wasm-opt -all --roundtrip %s -S -o - | filecheck %s | ||
|
|
||
| (module | ||
| (@binaryen.dead.if.unused) | ||
| (func $func-annotation | ||
| ;; The annotation here is on the function. | ||
| (drop | ||
| (i32.const 0) | ||
| ) | ||
| ) | ||
| ) | ||
|
|
||
| ;; CHECK: (module | ||
| ;; CHECK-NEXT: (type $0 (func)) | ||
| ;; CHECK-NEXT: (@binaryen.dead.if.unused) | ||
| ;; CHECK-NEXT: (func $func-annotation | ||
| ;; CHECK-NEXT: (drop | ||
| ;; CHECK-NEXT: (i32.const 0) | ||
| ;; CHECK-NEXT: ) | ||
| ;; CHECK-NEXT: ) | ||
| ;; CHECK-NEXT: ) | ||
|
|
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,31 @@ | ||
| ;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. | ||
|
|
||
| ;; RUN: wasm-opt -all %s -S -o - | filecheck %s | ||
|
|
||
| ;; RUN: wasm-opt -all --roundtrip %s -S -o - | filecheck %s --check-prefix=RTRIP | ||
|
|
||
| (module | ||
| ;; CHECK: (type $0 (func)) | ||
|
|
||
| ;; CHECK: (func $func (type $0) | ||
| ;; CHECK-NEXT: (call $func) | ||
| ;; CHECK-NEXT: (@binaryen.dead.if.unused) | ||
| ;; CHECK-NEXT: (call $func) | ||
| ;; CHECK-NEXT: (call $func) | ||
| ;; CHECK-NEXT: ) | ||
| ;; RTRIP: (type $0 (func)) | ||
|
|
||
| ;; RTRIP: (func $func (type $0) | ||
| ;; RTRIP-NEXT: (call $func) | ||
| ;; RTRIP-NEXT: (@binaryen.dead.if.unused) | ||
| ;; RTRIP-NEXT: (call $func) | ||
| ;; RTRIP-NEXT: (call $func) | ||
| ;; RTRIP-NEXT: ) | ||
| (func $func | ||
| ;; Three calls, one annotated in the middle. | ||
| (call $func) | ||
| (@binaryen.dead.if.unused) | ||
| (call $func) | ||
| (call $func) | ||
| ) | ||
| ) |
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.
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.
Should we check round-tripping of the function-level annotation as well?
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.
Added.