diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-08 01:51:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-08 01:51:48 +0000 |
commit | c3f5f7701f670c73244a08f8afd631b44a4fc0c4 (patch) | |
tree | 3f4f02b2e4e45f7851bfda97fca541a077075481 /lib/Analysis/DataStructure/BottomUpClosure.cpp | |
parent | cd90f21c0c09af3f4dfe56fcd1f70cbd21a4cf7d (diff) |
Instead of callign removeTriviallyDeadNodes on the global graph every time
removeDeadNodes is called, only call it at the end of the pass being run.
This saves 1.3 seconds running DSA on 177.mesa (5.3->4.0s), which is
pretty big. This is only possible because of the automatic garbage
collection done on forwarding nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/BottomUpClosure.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index 3dd8f204f7..5d71b19b57 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -63,6 +63,7 @@ bool BUDataStructures::run(Module &M) { // nodes at the end of the BU phase should make things that they point to // incomplete in the globals graph. // + GlobalsGraph->removeTriviallyDeadNodes(); GlobalsGraph->maskIncompleteMarkers(); return false; } |