OSDN Git Service

Add a new SDNode ctor and InitOperands method. This allows the operands for
authorChris Lattner <sabre@nondot.org>
Sun, 4 Feb 2007 08:13:53 +0000 (08:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 Feb 2007 08:13:53 +0000 (08:13 +0000)
commitbc2e26241d507ecd6c79598e5175f90852b716b3
tree6a76a6f156c2e56622c1512b9b8ae5790117c894
parentab4ed595385d0b9421c0d45c809ec6324cf11f11
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
include/llvm/CodeGen/SelectionDAGNodes.h