mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 21:21:39 +02:00
i965/fs: Properly calculate the number of instructions in calculate_register_pressure
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
514fd1c55e
commit
4ddc25a8d4
1 changed files with 3 additions and 1 deletions
|
|
@ -3400,7 +3400,9 @@ fs_visitor::calculate_register_pressure()
|
|||
invalidate_live_intervals();
|
||||
calculate_live_intervals();
|
||||
|
||||
unsigned num_instructions = instructions.length();
|
||||
unsigned num_instructions = 0;
|
||||
foreach_block(block, cfg)
|
||||
num_instructions += block->instructions.length();
|
||||
|
||||
regs_live_at_ip = rzalloc_array(mem_ctx, int, num_instructions);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue