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:
Christopher Haster
2024-04-14 22:57:59 -05:00
parent 82ddb33510
commit 00a2332417
+3 -3
View File
@@ -2919,9 +2919,9 @@ trunk:;
lfs_swap32(&jump, &branch_);
}
weight += p[0].weight;
jump = p[0].jump;
lfsr_p_pop(p);
p[0].alt = alt | LFSR_TAG_R;
p[0].weight += weight;
weight = 0;
// one diverged? trim so alt is pruned
} else {