Pool-allocation for SDNodes. The pool is allocated once for each function,
authorDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 23:02:41 +0000 (23:02 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 23:02:41 +0000 (23:02 +0000)
commit0e5f1306b059b62d7725f324e087efbc8e7a782d
tree9c2fec0441e942eb2e458c3306fd72704404bfaf
parente14d81deeb6bb3404ffee5e59ecb88304f112f4a
Pool-allocation for SDNodes. The pool is allocated once for each function,
and reused across SelectionDAGs.

This drastically reduces the number of calls to malloc/free made during
instruction selection, and improves memory locality.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53211 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
include/llvm/CodeGen/SelectionDAGISel.h
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp