Skip to content

Commit

Permalink
Fix possible incorrect split of live interval
Browse files Browse the repository at this point in the history
We shouldn't split it exacly in the place of definition
  • Loading branch information
dstogov committed May 8, 2024
1 parent 3553ef1 commit f7f3400
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ir_ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,10 @@ static ir_live_pos ir_first_use_pos_after(ir_live_interval *ival, ir_live_pos po
{
ir_use_pos *p = ival->use_pos;

while (p && p->pos <= pos) {
while (p && p->pos < pos) {
p = p->next;
}
if (p && p->pos == pos && p->op_num != 0) {
p = p->next;
}
while (p && !(p->flags & flags)) {
Expand Down

0 comments on commit f7f3400

Please sign in to comment.