myunbin opened PR #13205 from myunbin:fix_e-graph_rewrite_depth_limit to bytecodealliance:main:
Fix an off-by-one in the e-graph rewrite depth limit.
REWRITE_LIMITis set to 5. Current check usesrewrite_depth > REWRITE_LIMITbefore incrementing the depth. Since
rewrite_depthstarts at 0, this allows rewrites to run at effective depth 6.If the intended maximum rewrite depth is 5, this changes the check to
rewrite_depth >= REWRITE_LIMIT.Noticed while investigating #13204.
myunbin requested fitzgen for a review on PR #13205.
myunbin requested wasmtime-compiler-reviewers for a review on PR #13205.
myunbin requested wasmtime-core-reviewers for a review on PR #13205.
myunbin updated PR #13205.
github-actions[bot] added the label cranelift on PR #13205.
:thumbs_up: fitzgen submitted PR review:
Thanks!
fitzgen added PR #13205 [Cranelift] fix e-graph rewrite depth limit to the merge queue.
:check: fitzgen merged PR #13205.
fitzgen removed PR #13205 [Cranelift] fix e-graph rewrite depth limit from the merge queue.
Last updated: May 03 2026 at 22:13 UTC