i965/fs: When doing no work for live interval calculation, do no allocation.
authorEric Anholt <eric@anholt.net>
Tue, 8 May 2012 20:40:44 +0000 (13:40 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 14 May 2012 23:51:00 +0000 (16:51 -0700)
commitf7a71e2570053205eb603aa04b8c52d4f54d8e4c
tree6275443c6d0ab980766a591ae4bbfd078bf595eb
parent206eca631b596154e8a9bf6a2d0de9fdb644b3cc
i965/fs: When doing no work for live interval calculation, do no allocation.

When I had a bug causing the backend to never finish optimizing, it
also sent me deep into swap.  This avoids extra memory allocation per
trip through optimization, and thus may reduce the peak memory
allocation of the driver even in the success case.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp