diff --git a/src/intel/compiler/brw_ir_allocator.h b/src/intel/compiler/brw_ir_allocator.h index 818642fb07e..85bd1e69bef 100644 --- a/src/intel/compiler/brw_ir_allocator.h +++ b/src/intel/compiler/brw_ir_allocator.h @@ -37,13 +37,12 @@ namespace brw { class simple_allocator { public: simple_allocator() : - sizes(NULL), offsets(NULL), count(0), total_size(0), capacity(0) + sizes(NULL), count(0), capacity(0) { } ~simple_allocator() { - free(offsets); free(sizes); } @@ -54,12 +53,9 @@ namespace brw { if (capacity <= count) { capacity = MAX2(16, capacity * 2); sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned)); - offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned)); } sizes[count] = size; - offsets[count] = total_size; - total_size += size; return count++; } @@ -71,18 +67,9 @@ namespace brw { */ unsigned *sizes; - /** - * Array of offsets from the start of the VGRF space in allocation - * units. - */ - unsigned *offsets; - /** Total number of VGRFs allocated. */ unsigned count; - /** Cumulative size in allocation units. */ - unsigned total_size; - private: unsigned capacity; };