-
Notifications
You must be signed in to change notification settings - Fork 11
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
Implement liveness analysis #229
Open
kulcsaradam
wants to merge
1
commit into
Samsung:main
Choose a base branch
from
kulcsaradam:live_analysis
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
Conversation
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
29ef8fa
to
6660ba7
Compare
6660ba7
to
4ca3dd1
Compare
4ca3dd1
to
ddfeaf8
Compare
zherczeg
requested changes
Mar 21, 2024
bfdbb4c
to
4bb4a46
Compare
9d6a783
to
2b9957b
Compare
e0b6926
to
0a169a2
Compare
c062e79
to
0bd6931
Compare
0bd6931
to
52cc323
Compare
903818c
to
8e94ba5
Compare
8eb6770
to
b7d1651
Compare
1fae2e9
to
3033fb2
Compare
3033fb2
to
dda696b
Compare
573c03b
to
7928cd9
Compare
c1b4afd
to
f99de50
Compare
f99de50
to
8a4974e
Compare
07d8e4f
to
889b81a
Compare
e141fa4
to
cc50def
Compare
cc50def
to
47849d4
Compare
Implement live variable analysis for function parameters, variables and constants. Define the range from start to end offset where a variable is used and allocate space for used variables. Also define which variables need to be cleared before use. Move constant values to a lower offset on the stack if possibles. Signed-off-by: Adam Laszlo Kulcsar <[email protected]>
47849d4
to
4fc330b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
With this patch I aim to optimize Walrus stack useage. This patch does not run without errors yet. Currently, there is a variable pushed down the stack for each local variable.
My idea is to analyse the Bytecode and get the maximum amount of variables the code needs at one point and only push down the stack that given number of variables.
The patch is still in draft, I am just curious about things I might have missed or done better! There are definitly parts that can be optimized, which I will try to once I get the patch running properly.