Move a DenseMap's declaration outside of a loop, and just call
authorDan Gohman <gohman@apple.com>
Mon, 23 Jun 2008 21:15:00 +0000 (21:15 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 23 Jun 2008 21:15:00 +0000 (21:15 +0000)
commit8cb8245cf117fc4a4f0a6549d9a773a12895550c
tree22399e8c0307c7381b512f0c743968b09f3090cf
parent4b84086e89d86fb16f562166d9fea8df37db6be7
Move a DenseMap's declaration outside of a loop, and just call
clear() on each iteration. This avoids allocating and deallocating
all of DenseMap's memory on each iteration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp