feat(llvm): Script to port MIR patterns#896
Open
osmanyasar05 wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
VeIR Benchmarks
Details
| Benchmark suite | Current: 0c75522 | Previous: 0a419ad | Ratio |
|---|---|---|---|
add-fold-worklist/create |
2144000 ns (± 50915) |
1861000 ns (± 20477) |
1.15 |
add-fold-worklist/rewrite |
3942000 ns (± 53599) |
3548000 ns (± 63797) |
1.11 |
add-fold-worklist-local/create |
2291000 ns (± 58278) |
1843000 ns (± 89949) |
1.24 |
add-fold-worklist-local/rewrite |
3337000 ns (± 34946) |
2961000 ns (± 45175) |
1.13 |
add-zero-worklist/create |
2287000 ns (± 112530) |
1841000 ns (± 89735) |
1.24 |
add-zero-worklist/rewrite |
2525000 ns (± 45068) |
2267000 ns (± 54123) |
1.11 |
add-zero-reuse-worklist/create |
1941000 ns (± 45960) |
1541000 ns (± 54738) |
1.26 |
add-zero-reuse-worklist/rewrite |
2133000 ns (± 79386) |
1837000 ns (± 21984) |
1.16 |
mul-two-worklist/create |
2275000 ns (± 83413) |
1855500 ns (± 94365) |
1.23 |
mul-two-worklist/rewrite |
5580000 ns (± 45002) |
4959500 ns (± 109268) |
1.13 |
add-fold-forwards/create |
2332000 ns (± 108489) |
1835000 ns (± 16802) |
1.27 |
add-fold-forwards/rewrite |
3038000 ns (± 43108) |
2689000 ns (± 45409) |
1.13 |
add-zero-forwards/create |
2226000 ns (± 85078) |
1838000 ns (± 37930) |
1.21 |
add-zero-forwards/rewrite |
1980000 ns (± 35323) |
1754000 ns (± 29132) |
1.13 |
add-zero-reuse-forwards/create |
1869500 ns (± 89390) |
1516000 ns (± 62208) |
1.23 |
add-zero-reuse-forwards/rewrite |
1547500 ns (± 48643) |
1385000 ns (± 51251) |
1.12 |
mul-two-forwards/create |
2173000 ns (± 73874) |
1837000 ns (± 92575) |
1.18 |
mul-two-forwards/rewrite |
3704000 ns (± 99636) |
3218000 ns (± 80363) |
1.15 |
add-zero-reuse-first/create |
1884500 ns (± 71889) |
1508500 ns (± 50912) |
1.25 |
add-zero-reuse-first/rewrite |
8000 ns (± 2152) |
9000 ns (± 1907) |
0.89 |
add-zero-lots-of-reuse-first/create |
1920500 ns (± 93654) |
1506000 ns (± 20603) |
1.28 |
add-zero-lots-of-reuse-first/rewrite |
818000 ns (± 32803) |
746000 ns (± 13957) |
1.10 |
This comment was automatically generated by workflow using github-action-benchmark.
Contributor
Author
|
Per @ineol's feedback I deleted the script from this PR. I think we'll put it back when (if) we have a folder for the project. LMK if I understood it wrongly so I can revert or make other changes. |
osmanyasar05
commented
Jun 22, 2026
This file contains hidden or 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
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 introduces a script that automatically ports rewrites from LLVM GlobalISel TableGen patterns to Veir.