summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-04 08:13:53 +0000
committerChris Lattner <sabre@nondot.org>2007-02-04 08:13:53 +0000
commit69b02ab54c60950ee5b9f488692ec0de0c14230a (patch)
tree077bd4922b0b6d2a12e43a9861900a12cb886e1d /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent22639f3d90cfdd8ef29abc033dbcf8f1b67f34b0 (diff)
downloadbcm5719-llvm-69b02ab54c60950ee5b9f488692ec0de0c14230a.tar.gz
bcm5719-llvm-69b02ab54c60950ee5b9f488692ec0de0c14230a.zip
Add a new SDNode ctor and InitOperands method. This allows the operands for
an SDNode to be allocated as part of the node itself, instead of being a separate new[]'d object. Switch HandleSDNode, LoadSDNode, and StoreSDNode to use this mechanism. This saves one heap allocation and free for each node of this type that is allocated. This reduces isel time from 2.7638 to 2.6164s on kc++, which is a 5.6% speedup. llvm-svn: 33877
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud