8000 compute finite tape sizes for cycles without recorded loads by can-lehmann · Pull Request #159 · can-lehmann/metajit.cpp · GitHub
[go: up one dir, main page]

Skip to content

compute finite tape sizes for cycles without recorded loads - #159

Merged
can-lehmann merged 4 commits into
mainfrom
can-tape-size-empty-cycles
Nov 16, 2026
Merged

can-lehmann merged 4 commits into
mainfrom
can-tape-size-empty-cycles

Conversation

@can-lehmann
Copy link
Copy Markdown
Owner

Detect tape growth across natural-loop backedges instead of rejecting every cyclic section. Loops that add no recorded bytes need no iteration bound; cycles that record loads remain conservatively unbounded.

Add coverage for excluded loads inside a loop, alignment of recorded loads outside it, and a cycle with recorded loads. All 47 genext tests pass.

Detect tape growth across natural-loop backedges instead of rejecting every cyclic section. Loops that add no recorded bytes need no iteration bound; cycles that record loads remain conservatively unbounded.

Add coverage for excluded loads inside a loop, alignment of recorded loads outside it, and a cycle with recorded loads. All 47 genext tests pass.
@github-actions
Copy link
Copy Markdown

Coverage

File Lines Functions Branches
bitprovenance.hpp 🟢 100.00% 🟢 100.00% 🟡 81.90%
codeheap.hpp 🔴 65.38% 🟢 100.00% 🔴 62.50%
genext.hpp 🟡 74.16% 🟡 87.50% 🟡 76.09%
jitir.hpp 🟡 73.21% 🟡 80.19% 🟡 73.60%
jitir_llvmapi.hpp 🔴 54.74% 🟡 80.00% 🔴 50.00%
llvmgen.hpp 🟢 91.04% 🟢 90.91% 🟡 80.00%
lowerllvm.hpp 🔴 69.57% 🟡 87.50% 🔴 50.49%
x86gen.hpp 🟡 88.80% 🟡 84.57% 🟡 82.54%
x86insts.inc.hpp 🟡 79.67% - -
TOTAL 🟡 76.24% 🟡 81.88% 🟡 77.29%
Diff Coverage

Diff Coverage

Diff: origin/main...HEAD, staged and unstaged changes

  • genext.hpp (100%)

Summary

  • Total: 4 lines
  • Missing: 0 lines
  • Coverage: 100%

Use a single self-loop with a fixed unrecorded alias group, following the builder style of the neighboring genext tests. Separate setup, control-flow construction, configuration, and checks with blank lines. All 47 genext tests pass.
@github-actions
Copy link
Copy Markdown

Coverage

File Lines Functions Branches
bitprovenance.hpp 🟢 100.00% 🟢 100.00% 🟡 81.90%
codeheap.hpp 🔴 65.38% 🟢 100.00% 🔴 62.50%
genext.hpp 🟡 74.16% 🟡 87.50% 🟡 76.09%
jitir.hpp 🟡 73.21% 🟡 80.19% 🟡 73.60%
jitir_llvmapi.hpp 🔴 54.74% 🟡 80.00% 🔴 50.00%
llvmgen.hpp 🟢 91.04% 🟢 90.91% 🟡 80.00%
lowerllvm.hpp 🔴 69.57% 🟡 87.50% 🔴 50.49%
x86gen.hpp 🟡 88.80% 🟡 84.57% 🟡 82.54%
x86insts.inc.hpp 🟡 79.67% - -
TOTAL 🟡 76.24% 🟡 81.88% 🟡 77.29%
Diff Coverage

Diff Coverage

Diff: origin/main...HEAD, staged and unstaged changes

  • genext.hpp (100%)

Summary

  • Total: 4 lines
  • Missing: 0 lines
  • Coverage: 100%

@github-actions
Copy link
Copy Markdown

Coverage

File Lines Functions Branches
bitprovenance.hpp 🟢 100.00% 🟢 100.00% 🟡 82.13%
codeheap.hpp 🔴 65.38% 🟢 100.00% 🔴 62.50%
genext.hpp 🟡 74.16% 🟡 87.50% 🟡 76.09%
jitir.hpp 🟡 73.21% 🟡 80.19% 🟡 73.60%
jitir_llvmapi.hpp 🔴 54.74% 🟡 80.00% 🔴 50.00%
llvmgen.hpp 🟢 91.04% 🟢 90.91% 🟡 80.00%
lowerllvm.hpp 🔴 69.57% 🟡 87.50% 🔴 50.49%
x86gen.hpp 🟡 88.80% 🟡 84.57% 🟡 82.54%
x86insts.inc.hpp 🟡 79.67% - -
TOTAL 🟡 76.24% 🟡 81.88% 🟡 77.30%
Diff Coverage

Diff Coverage

Diff: origin/main...HEAD, staged and unstaged changes

  • genext.hpp (100%)

Summary

  • Total: 4 lines
  • Missing: 0 lines
  • Coverage: 100%

@can-lehmann
can-lehmann merged commit 2b1aad1 into main Nov 16, 2026
2 checks passed
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

0