i965/fs: Recalculate live intervals in calculate_register_pressure().

Otherwise calling dump_instructions() after declaring a new fs_reg would
segfault when calculate_register_pressure()'s loop over reg walked off
the end of the virtual_grf_start[] array that calculate_live_intervals()
would have reallocated for you, if it had known there was a new
register.
This commit is contained in:
Matt Turner 2014-03-26 13:09:21 -07:00
parent c973e440d5
commit 26012c1673
1 changed files with 1 additions and 0 deletions

View File

@ -3294,6 +3294,7 @@ fs_visitor::assign_binding_table_offsets()
void
fs_visitor::calculate_register_pressure()
{
invalidate_live_intervals();
calculate_live_intervals();
int num_instructions = 0;