-
Notifications
You must be signed in to change notification settings - Fork 492
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
AVM: Deadcode and basic block analysis #3870
Conversation
Unify most assembly routines to minimize difference and ease doc gen Flexible opcode costs and fewer assembly routines
Ignores deadcode. Understands how jumps obscure typing info. Detects error within basic blocks Adds #pragma typetrack false Makes spec creation a bit more uniform
Codecov Report
@@ Coverage Diff @@
## master #3870 +/- ##
==========================================
+ Coverage 49.92% 50.10% +0.18%
==========================================
Files 391 393 +2
Lines 68191 68301 +110
==========================================
+ Hits 34044 34223 +179
+ Misses 30431 30375 -56
+ Partials 3716 3703 -13
Continue to review full report at Codecov.
|
…onsecutive Retain type tracking state during consecutive type tracking enablements
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.
I like the proto change a lot
Centralize OpStream initialization by introducing factory method
Co-authored-by: Michael Diamant <[email protected]>
This PR improves assembly so that it detects typing errors if they occur within a basic block, even if there have been branches elsewhere in the code. It also allows "bad" code if the code is in a deadcode region, such as after an unconditional branch
return
,err
,retsub
...It also continues to simplify the OpSpecs table by using helper functions to declare the opcode "Prototype" and other details, so there is less clutter.