diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-07 09:59:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-07 09:59:07 +0000 |
commit | ced50f8215d960d8fdbac74032a17fb12d510a0b (patch) | |
tree | 6144380caa737368ef25853a70159b05baa16e27 /include | |
parent | c93a905501cf5d17705b09eaffbf8dfb862ed5a5 (diff) | |
download | external_llvm-ced50f8215d960d8fdbac74032a17fb12d510a0b.zip external_llvm-ced50f8215d960d8fdbac74032a17fb12d510a0b.tar.gz external_llvm-ced50f8215d960d8fdbac74032a17fb12d510a0b.tar.bz2 |
Make GVN more memory efficient, particularly on code that contains a large number of
allocations, which GVN can't optimize anyways.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 8d333de..65cfb56 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -103,6 +103,10 @@ public: return C; } + size_t getNumChildren() const { + return Children.size(); + } + void setIDom(DomTreeNodeBase<NodeT> *NewIDom) { assert(IDom && "No immediate dominator?"); if (IDom != NewIDom) { |