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

Misc improvements 10 #42

Merged
merged 5 commits into from
Apr 30, 2024
Merged

Misc improvements 10 #42

merged 5 commits into from
Apr 30, 2024

Conversation

janvrany
Copy link
Owner

No description provided.

This commit introduces new optimization pass - `TRILXmul2Xshl` - which
replaces

    ?mul
      <value>
      ?const <power of two>

with

    ?shl
      <value>
      ?const <log2 of <power of two>>

While this may not have real impact on modern CPUs, it serves as an
example of how to do simple TRIL-to-TRIL optimizations.

It is *not* included in default optimization pipeline as of now (and
may never be).
This commit silence errors produced by Pharo compiler about variables
being shadowed. The way Pharo browser is handling it makes it impossible
to ignore the warning (one cannot accept). Sigh.
@janvrany janvrany merged commit 3de0545 into master Apr 30, 2024
2 checks passed
@janvrany janvrany deleted the pr/misc-improvements-10 branch April 30, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant