diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-14 22:19:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-14 22:19:25 +0000 |
commit | 213a16c637926bfc38ba373d3aba6778e181e3ec (patch) | |
tree | 39713a4bf0f41e3a51063fa70f3aacaa8029abab /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | b5677f933f918acd8b8525635510d22dfb26285e (diff) |
Add code to resize the CSEMap hash table. This doesn't speedup codegen of
kimwitu, but seems like a good idea from a "avoid performance cliffs" standpoint :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 6fd8ba2a9e..1c17dfbee8 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -469,6 +469,7 @@ SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N, SelectionDAG::~SelectionDAG() { while (!AllNodes.empty()) { SDNode *N = AllNodes.begin(); + N->SetNextInBucket(0); delete [] N->OperandList; N->OperandList = 0; N->NumOperands = 0; |