Skip to content
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

compiler: allow to use multiple returns in inlined functions #2594

Merged
merged 3 commits into from
Jul 12, 2022

Commits on Jul 12, 2022

  1. compiler: allow to use conditional returns in inlined functions

    Signed-off-by: Evgeniy Stratonikov <[email protected]>
    fyrchik committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    ce24451 View commit details
    Browse the repository at this point in the history
  2. compiler: reduce instructions in 2 stages

    First replace parts to be removed with NOPs, then actually remove.
    
    Signed-off-by: Evgeniy Stratonikov <[email protected]>
    fyrchik committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    05efc57 View commit details
    Browse the repository at this point in the history
  3. compiler: remove jumps to the next instruction

    In case there are no returns in the inlined function, jumps point to the
    next instruction and can be omitted. This optimization can be extended
    to handle other cases, here we just make sure that already existing code
    stays the same.
    
    Signed-off-by: Evgeniy Stratonikov <[email protected]>
    fyrchik committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    17329ee View commit details
    Browse the repository at this point in the history