aboutsummaryrefslogtreecommitdiff
path: root/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
commitbc2e26241d507ecd6c79598e5175f90852b716b3 (patch)
tree6a76a6f156c2e56622c1512b9b8ae5790117c894 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentab4ed595385d0b9421c0d45c809ec6324cf11f11 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions