i965/cfg: Initialize cfg_t::cycle_count.
authorMatt Turner <mattst88@gmail.com>
Mon, 28 Nov 2016 21:24:04 +0000 (13:24 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Nov 2016 19:53:36 +0000 (11:53 -0800)
This reverts commit b4001af1744a02f472bd1204458662088307981b.

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

index 53b32be510a0b6f1414e23690767090976d210e6..ff2cf6affad7ab0eeade4cb23d0ee4c1386318e5 100644 (file)
@@ -158,6 +158,7 @@ cfg_t::cfg_t(exec_list *instructions)
    blocks = NULL;
    num_blocks = 0;
    idom_dirty = true;
+   cycle_count = 0;
 
    bblock_t *cur = NULL;
    int ip = 0;
index ec21ae74c8944a4aa7537129cfda5252f1cb7f53..b8af40f725fbb1f7f6480d4484f5fc5009f0b2a3 100644 (file)
@@ -274,7 +274,7 @@ bblock_t::last_non_control_flow_inst()
 
 struct cfg_t {
 #ifdef __cplusplus
-   DECLARE_RZALLOC_CXX_OPERATORS(cfg_t)
+   DECLARE_RALLOC_CXX_OPERATORS(cfg_t)
 
    cfg_t(exec_list *instructions);
    ~cfg_t();