-
Notifications
You must be signed in to change notification settings - Fork 112
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
Basic Compiler Optimizations #1630
Closed
Closed
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
# Conflicts: # DMCompiler/Program.cs
# Conflicts: # DMCompiler/Optimizer/CFG/CFGStack.cs
# Conflicts: # DMCompiler/DM/DMProc.cs
…herency. Also reduces unneeded changes.
# Conflicts: # DMCompiler/DM/DMProc.cs
… references and and cleans up unneeded spacing changes
… references and and cleans up unneeded spacing changes
… references and and cleans up unneeded spacing changes Probably don't need this. Removes some unnecessary code for resolving references and and cleans up unneeded spacing changes
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
LINQ Removal soon tm |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…imizations # Conflicts: # DMCompiler/Bytecode/DreamProcOpcode.cs # DMCompiler/DM/DMProc.cs # DMCompiler/DM/Expressions/Builtins.cs
boring-cyborg
bot
added
Compiler
Involves the OpenDream compiler
Runtime
Involves the OpenDream server/runtime
labels
Feb 22, 2024
Was ~230MB when compiling Paradise
Going to redo this entirely. |
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.
This PR adds a couple of basic optimizations for the compiler, alongside a framework for manipulating bytecode before writing, and a bytecode dumper tool:
This is all very WIP and my code is pretty hacked-together. Haven't done that much coding in C#. I'm hoping to add a CFG generation phase (had to trash the last one because it was something like O(n^3) complexity lmao) and SSA for constant propagation.
Performance stats: -- Cut out, apparently there is minimal difference on the release build. The use of this PR is mainly the framework --
Did not realize renaming branches on git deleted the old branch, sorry @wixoaGit @ike709 @moonheart08