i965/cfg: Initialize bblock_t::cycle_count.
authorMatt Turner <mattst88@gmail.com>
Mon, 28 Nov 2016 21:25:01 +0000 (13:25 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Nov 2016 19:53:36 +0000 (11:53 -0800)
commitb0156702fa5b416e09c48d44a97749be9bde362e
tree32b1bd5a8509a2dd1a562e23b3e728fe5ce3a970
parentca9e30e002db87946e93fe58118a740e6438d342
i965/cfg: Initialize bblock_t::cycle_count.

schedule_instructions(bblock_t *) isn't called on blocks with a single
instruction, and since it is the only thing that set cycle_count,
cycle_count would be uninitialized.

A non-empty block with bblock_t::cycle_count == 0 is arguably a bug.
That'll be fixed in the next commit.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_cfg.cpp