i965/fs: Make count_to_loop_end() use basic blocks.
authorMatt Turner <mattst88@gmail.com>
Mon, 1 Sep 2014 22:38:58 +0000 (15:38 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 24 Sep 2014 16:42:46 +0000 (09:42 -0700)
commit235f451f7a11ea5dfa941dcb6f5fc628455e9249
tree204ff7ae1e73f5b29071905a6120b93e9710acea
parent90bfeb22444df6ce779251522e47bf169e130f8e
i965/fs: Make count_to_loop_end() use basic blocks.

When the instructions aren't in a flat list, this wouldn't have worked.
Also, this should be faster.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp