-
Notifications
You must be signed in to change notification settings - Fork 892
ConstraintAnalysis: Optimize local.get #9136
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
Changes from all commits
f39cbc5
eb1cf7e
6e64e10
fbf0903
eb62916
f9ea341
8d3cac8
1ca0357
f23e45c
9262af5
7ce181c
0eb6ad3
87922a3
02b062f
ebd23e6
6e56a0e
783f44a
6db5f6a
c8a3ffb
9b66ee5
8e3495c
5795eec
03126ad
0782b34
e79ade7
9fe588d
68e9e5c
96f839c
fca9397
65216d7
4cf0949
d3ce163
ceb6e9a
d590467
f08d719
650e5d8
d29b82c
737b2d0
c4eb348
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ | |
| (i32.const 115) | ||
| ) | ||
| (global.set $sp | ||
| (local.get $0) | ||
| (i32.const 100) | ||
| ) | ||
| ) | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,8 +49,5 @@ | |
| ;; CHECK-NEXT: (i32.const 42) | ||
| ;; CHECK-NEXT: ) | ||
| ;; CHECK-NEXT: (call $import) | ||
| ;; CHECK-NEXT: (i32.add | ||
| ;; CHECK-NEXT: (local.get $0) | ||
| ;; CHECK-NEXT: (local.get $0) | ||
| ;; CHECK-NEXT: ) | ||
| ;; CHECK-NEXT: (i32.const 84) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we optimizing tuple-typed locals? If so, is that intentional?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't optimize them directly (no parsing support for tuples), but if TupleOptimization broke such a local into normal ones, we can handle those. |
||
| ;; CHECK-NEXT: ) | ||
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.
Does ctor-eval run optimizations by default? Is that why there is a change here?
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.
Yes, after we eval code in a function, we run default opts immediately as a followup. (To save the user needing to do the obvious wasm-opt call)