diff options
author | mikedn <onemihaid@hotmail.com> | 2018-03-17 05:43:59 +0200 |
---|---|---|
committer | Sergey Andreenko <seandree@microsoft.com> | 2018-03-16 20:43:59 -0700 |
commit | 3968088f04cd9e940be6b16983b4b17a7bf7da73 (patch) | |
tree | 9f4c8559e7f4a239e738e479f31aa4fac0f6600a /src/jit/jitstd | |
parent | de7e6a9f88fcdc9aa88acad5e630ca3550a841b0 (diff) | |
download | coreclr-3968088f04cd9e940be6b16983b4b17a7bf7da73.tar.gz coreclr-3968088f04cd9e940be6b16983b4b17a7bf7da73.tar.bz2 coreclr-3968088f04cd9e940be6b16983b4b17a7bf7da73.zip |
Do not compute the IDF for all blocks in advance (#15146)
InsertsPhiFunctions visits each block only once so there's no need to compute and store the IDFs for all blocks in advance. The IDF of a given block can be computed when the block is visited and discarded after that. This way a single BlkVector can be reused for all blocks.
Diffstat (limited to 'src/jit/jitstd')
-rw-r--r-- | src/jit/jitstd/vector.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/jit/jitstd/vector.h b/src/jit/jitstd/vector.h index d252e18253..3d57cbb304 100644 --- a/src/jit/jitstd/vector.h +++ b/src/jit/jitstd/vector.h @@ -439,10 +439,7 @@ void vector<T, Allocator>::clear() { m_pArray[i].~T(); } - m_allocator.deallocate(m_pArray, m_nCapacity); - m_pArray = NULL; m_nSize = 0; - m_nCapacity = 0; } template <typename T, typename Allocator> |