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

add Book::transform #107

Merged
merged 1 commit into from
Apr 10, 2024
Merged

add Book::transform #107

merged 1 commit into from
Apr 10, 2024

Conversation

tjjfvi
Copy link
Contributor

@tjjfvi tjjfvi commented Apr 2, 2024

This PR extracts the logic of hvmc transform into Book::transform, which accepts hvmc transformation passes and options, and invokes the enabled transformation passes in the optimal order.

cc @imaqtkatt; I believe this will be useful in hvm-lang

@HigherOrderBot

This comment has been minimized.

@tjjfvi tjjfvi marked this pull request as ready for review April 10, 2024 12:47
@tjjfvi tjjfvi requested a review from enricozb April 10, 2024 12:47
@HigherOrderBot
Copy link
Collaborator

Perf run for d266676:

file              mode        main          d2666764801f
========================================================
merge_sort        intr-singl       7.358 s       7.772 s
                  intr-multi       3.902 s       3.850 s
--------------------------------------------------------
boom              intr-singl       2.243 s       2.266 s
                  intr-multi       2.853 s       2.483 s
--------------------------------------------------------
bitonic_sort_lam  intr-singl      11.420 s      11.851 s
                  intr-multi       5.683 s       5.758 s
--------------------------------------------------------
radix_sort_lam    intr-singl       9.431 s       9.748 s
                  intr-multi       4.647 s       4.859 s
--------------------------------------------------------
sum_tree          intr-singl       8.954 s       9.608 s
                  intr-multi       4.390 s       4.582 s
--------------------------------------------------------
c2                intr-singl       0.000 s       0.000 s
                  intr-multi       0.001 s       0.001 s
--------------------------------------------------------
sum_tail          intr-singl       1.159 s       1.213 s
                  intr-multi       1.134 s       1.196 s
--------------------------------------------------------
sum_rec           intr-singl      13.763 s      14.483 s
                  intr-multi       7.187 s       7.432 s

@tjjfvi tjjfvi added this pull request to the merge queue Apr 10, 2024
Merged via the queue into main with commit 40febf3 Apr 10, 2024
5 checks passed
@tjjfvi tjjfvi deleted the transform-api branch April 10, 2024 13:33
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.

3 participants