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 | 63268f06723bdb0b3cff436a8808c947c3a66c92 (patch) | |
tree | 501c4fb46917e93b8cec2a8a6d3eee67c458e289 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | fdb296850c2dd98d1233359662418a9a50ef560f (diff) | |
download | bcm5719-llvm-63268f06723bdb0b3cff436a8808c947c3a66c92.tar.gz bcm5719-llvm-63268f06723bdb0b3cff436a8808c947c3a66c92.zip |
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 :)
llvm-svn: 29675
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 6fd8ba2a9ec..1c17dfbee83 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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; |