diff options
author | Mike Danes <onemihaid@hotmail.com> | 2018-06-16 22:21:40 +0300 |
---|---|---|
committer | Mike Danes <onemihaid@hotmail.com> | 2018-06-30 22:34:09 +0300 |
commit | 235bc725acdf8a66b19f1c51cfe83f573562f80d (patch) | |
tree | 5889b1ec4bc6fd1b7e7202b5c02e9ac39e115b19 /src/jit/hashbv.h | |
parent | c991031d4cfb8c82bd0d9c736e584e1c8c329d4b (diff) | |
download | coreclr-235bc725acdf8a66b19f1c51cfe83f573562f80d.tar.gz coreclr-235bc725acdf8a66b19f1c51cfe83f573562f80d.tar.bz2 coreclr-235bc725acdf8a66b19f1c51cfe83f573562f80d.zip |
Cleanup hashBvGlobalData
Each compiler object contains a hashBvGlobalData that's 80 bytes in size. Only 16 bytes are actually used - the hash and node free lists.
* hbvFreeVectorList is supposed to be used by hashBv::freeVector but nothing calls that and getNewVector does not attempt to use the free list
* hbvHashSizeLog2 is always 0
* hashBvNextIterator is used only in HbvNext and that function is never used
Diffstat (limited to 'src/jit/hashbv.h')
-rw-r--r-- | src/jit/hashbv.h | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/jit/hashbv.h b/src/jit/hashbv.h index cadb182cc6..b07b3d89c8 100644 --- a/src/jit/hashbv.h +++ b/src/jit/hashbv.h @@ -186,8 +186,6 @@ public: public: hashBv(Compiler* comp); - hashBv(hashBv* other); - // hashBv() {} static hashBv* Create(Compiler* comp); static void Init(Compiler* comp); static hashBv* CreateFrom(hashBv* other, Compiler* comp); @@ -215,11 +213,8 @@ private: // maintain free lists for vectors hashBvNode** getNewVector(int vectorLength); - void freeVector(hashBvNode* vect, int vectorLength); int getNodeCount(); - hashBvNode* getFreeList(); - public: inline hashBvNode* getOrAddNodeForIndex(indexType index) { @@ -281,16 +276,6 @@ public: // -------------------------------------------------------------------- // -------------------------------------------------------------------- -class hbvFreeListNode -{ -public: - hbvFreeListNode* next; - int size; -}; - -// -------------------------------------------------------------------- -// -------------------------------------------------------------------- - class hashBvIterator { public: @@ -318,17 +303,10 @@ class hashBvGlobalData friend class hashBv; friend class hashBvNode; - hashBvNode* hbvNodeFreeList; - hashBv* hbvFreeList; - unsigned short hbvHashSizeLog2; - hbvFreeListNode* hbvFreeVectorList; - -public: - hashBvIterator hashBvNextIterator; + hashBvNode* hbvNodeFreeList; + hashBv* hbvFreeList; }; -indexType HbvNext(hashBv* bv, Compiler* comp); - // clang-format off #define FOREACH_HBV_BIT_SET(index, bv) \ { \ |