aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-04-28 15:19:28 -0700
committerMarge Bot <[email protected]>2020-03-09 04:44:11 +0000
commit03ac90aae517b6275809815a1b0223edd98eccd9 (patch)
tree68204b92157a6f24315c29841c187007bdb5507c /src/intel/compiler
parent43019c6f2cb6b35589213b3ae07b3859825ab1fe (diff)
intel/compiler: Make instructions_to_schedule a local variable
Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4093>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_schedule_instructions.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intel/compiler/brw_schedule_instructions.cpp b/src/intel/compiler/brw_schedule_instructions.cpp
index f10e58cd75d..de4fdd0239f 100644
--- a/src/intel/compiler/brw_schedule_instructions.cpp
+++ b/src/intel/compiler/brw_schedule_instructions.cpp
@@ -542,7 +542,6 @@ public:
this->grf_count = grf_count;
this->hw_reg_count = hw_reg_count;
this->instructions.make_empty();
- this->instructions_to_schedule = 0;
this->post_reg_alloc = (mode == SCHEDULE_POST);
this->mode = mode;
if (!post_reg_alloc) {
@@ -613,7 +612,6 @@ public:
void *mem_ctx;
bool post_reg_alloc;
- int instructions_to_schedule;
int grf_count;
unsigned hw_reg_count;
int reg_pressure;
@@ -925,8 +923,6 @@ instruction_scheduler::add_insts_from_block(bblock_t *block)
instructions.push_tail(n);
}
-
- this->instructions_to_schedule = block->end_ip - block->start_ip + 1;
}
/** Computation of the delay member of each node. */
@@ -1674,6 +1670,8 @@ instruction_scheduler::schedule_instructions(bblock_t *block)
{
const struct gen_device_info *devinfo = bs->devinfo;
int time = 0;
+ int instructions_to_schedule = block->end_ip - block->start_ip + 1;
+
if (!post_reg_alloc)
reg_pressure = reg_pressure_in[block->num];
block_idx = block->num;