rbyd-rr: Tweaked both-diverged trimming to not pop
This adds some code:
code stack
before: 34224 2864
after: 34244 (+0.1%) 2864 (+0.0%)
code frame stack
appendattr before: 2190 216 568
appendattr after: 2232 (+1.9%) 216 (+0.0%) 568 (+0.0%)
But makes it so both diverged-trimming cases end up with a zero weight
unreachable alt, which may lead to more simplification...
This commit is contained in:
@@ -2919,9 +2919,9 @@ trunk:;
|
|||||||
lfs_swap32(&jump, &branch_);
|
lfs_swap32(&jump, &branch_);
|
||||||
}
|
}
|
||||||
|
|
||||||
weight += p[0].weight;
|
p[0].alt = alt | LFSR_TAG_R;
|
||||||
jump = p[0].jump;
|
p[0].weight += weight;
|
||||||
lfsr_p_pop(p);
|
weight = 0;
|
||||||
|
|
||||||
// one diverged? trim so alt is pruned
|
// one diverged? trim so alt is pruned
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user