if (payload_last_use_ip[i] == -1)
continue;
- /* Note that we use a <= comparison, unlike virtual_grf_interferes(),
+ /* Note that we use a <= comparison, unlike vgrfs_interfere(),
* in order to not have to worry about the uniform issue described in
* calculate_live_intervals().
*/
for (unsigned n2 = first_vgrf_node;
n2 < (unsigned)first_spill_node && n2 < node; n2++) {
unsigned vgrf = n2 - first_vgrf_node;
- if (!(node_end_ip <= fs->virtual_grf_start[vgrf] ||
- fs->virtual_grf_end[vgrf] <= node_start_ip))
+ if (!(node_end_ip <= fs->live_intervals->vgrf_start[vgrf] ||
+ fs->live_intervals->vgrf_end[vgrf] <= node_start_ip))
ra_add_node_interference(g, node, n2);
}
}
/* Add interference based on the live range of the register */
for (unsigned i = 0; i < fs->alloc.count; i++) {
setup_live_interference(first_vgrf_node + i,
- fs->virtual_grf_start[i],
- fs->virtual_grf_end[i]);
+ fs->live_intervals->vgrf_start[i],
+ fs->live_intervals->vgrf_end[i]);
}
/* Add interference based on the instructions in which a register is used.
if (no_spill[i])
continue;
- int live_length = fs->virtual_grf_end[i] - fs->virtual_grf_start[i];
+ int live_length = fs->live_intervals->vgrf_end[i] - fs->live_intervals->vgrf_start[i];
if (live_length <= 0)
continue;