Skip to content

feat: Interpret byte operations#962

Open
nchappe wants to merge 4 commits into
mainfrom
nchappe/byte-ops-interp
Open

feat: Interpret byte operations#962
nchappe wants to merge 4 commits into
mainfrom
nchappe/byte-ops-interp

Conversation

@nchappe

@nchappe nchappe commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

shl, lshr, trunc, freeze, bitcast

@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: 7710762 Previous: 6501565 Ratio
add-fold-worklist/create 1820000 ns (± 22550) 2321000 ns (± 98790) 0.78
add-fold-worklist/rewrite 3546000 ns (± 22786) 3921000 ns (± 43595) 0.90
add-fold-worklist-local/create 1839000 ns (± 26013) 2258000 ns (± 135023) 0.81
add-fold-worklist-local/rewrite 3002000 ns (± 52846) 3316000 ns (± 80065) 0.91
add-zero-worklist/create 1869000 ns (± 93181) 2535000 ns (± 122316) 0.74
add-zero-worklist/rewrite 2289000 ns (± 37930) 2546000 ns (± 65809) 0.90
add-zero-reuse-worklist/create 1566000 ns (± 32837) 1968000 ns (± 92879) 0.80
add-zero-reuse-worklist/rewrite 1962000 ns (± 84243) 2062000 ns (± 55424) 0.95
mul-two-worklist/create 1824000 ns (± 26010) 2335000 ns (± 97784) 0.78
mul-two-worklist/rewrite 5075000 ns (± 33444) 5639000 ns (± 152237) 0.90
add-fold-forwards/create 1878500 ns (± 145720) 2284000 ns (± 98241) 0.82
add-fold-forwards/rewrite 2725500 ns (± 57636) 3000000 ns (± 64445) 0.91
add-zero-forwards/create 1861000 ns (± 89032) 2329500 ns (± 115197) 0.80
add-zero-forwards/rewrite 1752000 ns (± 27653) 1959000 ns (± 48272) 0.89
add-zero-reuse-forwards/create 1551000 ns (± 39221) 2029000 ns (± 57461) 0.76
add-zero-reuse-forwards/rewrite 1402000 ns (± 36032) 1531000 ns (± 47679) 0.92
mul-two-forwards/create 1849000 ns (± 32229) 2342000 ns (± 114577) 0.79
mul-two-forwards/rewrite 3279000 ns (± 48541) 3594500 ns (± 54080) 0.91
add-zero-reuse-first/create 1550000 ns (± 47502) 1952000 ns (± 121444) 0.79
add-zero-reuse-first/rewrite 10000 ns (± 1802) 8000 ns (± 1776) 1.25
add-zero-lots-of-reuse-first/create 1546500 ns (± 92133) 2009000 ns (± 72765) 0.77
add-zero-lots-of-reuse-first/rewrite 814000 ns (± 49723) 855000 ns (± 41985) 0.95

This comment was automatically generated by workflow using github-action-benchmark.

@nchappe nchappe force-pushed the nchappe/byte-value-interp branch from aa5d410 to 01599bf Compare July 1, 2026 09:16
@nchappe nchappe force-pushed the nchappe/byte-ops-interp branch from 464f0e0 to 66806ab Compare July 1, 2026 09:17
Base automatically changed from nchappe/byte-value-interp to main July 1, 2026 10:19
@nchappe

nchappe commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the sorry and added a few missing operations

nchappe added 4 commits July 3, 2026 12:16
There is one sorry for now because memory and bytes make different
assumptions about poison.
@nchappe nchappe force-pushed the nchappe/byte-ops-interp branch from 5972059 to 7710762 Compare July 3, 2026 11:36

@luisacicolini luisacicolini 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.

lgtm, thank you!

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