From a4345ff3246ddda900526334e463634ff6f5c0a4 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Tue, 2 Feb 2021 11:53:30 -0800 Subject: [PATCH] gpu-compute,misc: Remove unused private variable Clang 9 fails to compile GCN3 due to the unused private variable, `_nxtFreeIdx`, in `src/gpu-compute/dyn_pool_manager.hh`. This variable has therefore been removed. Change-Id: I33f2e9634bbf8d5cea7a42ae2ac9f3ea8298d406 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40397 Reviewed-by: Matt Sinclair Maintainer: Matt Sinclair Tested-by: kokoro --- src/gpu-compute/dyn_pool_manager.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gpu-compute/dyn_pool_manager.hh b/src/gpu-compute/dyn_pool_manager.hh index dc8ffec88..151a33feb 100644 --- a/src/gpu-compute/dyn_pool_manager.hh +++ b/src/gpu-compute/dyn_pool_manager.hh @@ -46,7 +46,7 @@ class DynPoolManager : public PoolManager { public: DynPoolManager(const PoolManagerParams &p) - : PoolManager(p), _regionSize(0), _nxtFreeIdx(0) + : PoolManager(p), _regionSize(0) { _totRegSpaceAvailable = p.pool_size; } @@ -63,8 +63,6 @@ class DynPoolManager : public PoolManager // actual size of a region (normalized to the minimum size that can // be reserved) uint32_t _regionSize; - // next index to allocate a region - int _nxtFreeIdx; // total registers available - across chunks uint32_t _totRegSpaceAvailable; // regIndex and freeSpace record -- 2.30.2