Skip to content

feat(llvm): Script to port MIR patterns#896

Open
osmanyasar05 wants to merge 3 commits into
mainfrom
mir_script
Open

feat(llvm): Script to port MIR patterns#896
osmanyasar05 wants to merge 3 commits into
mainfrom
mir_script

Conversation

@osmanyasar05

Copy link
Copy Markdown
Contributor

This PR introduces a script that automatically ports rewrites from LLVM GlobalISel TableGen patterns to Veir.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread Veir/Passes/RISCVCombines/MIRCombinesVeir.lean Outdated
Comment thread Veir/Passes/RISCVCombines/scripts/auto_combine_generator.py Outdated
@osmanyasar05

Copy link
Copy Markdown
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.

Comment thread Veir/Passes/RISCVCombines/MIRCombinesVeir.lean Outdated
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.

2 participants