aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-11 22:23:56 +0000
committerChris Lattner <sabre@nondot.org>2002-11-11 22:23:56 +0000
commit3ba8893af53468df2e775f8504e0ec13d889ce9e (patch)
tree74a4ed3905aba0b45964fb7516b6762321ca54f5 /lib/Analysis
parent0ecc42619f36195ab2a904622821833cdf323e8f (diff)
downloadexternal_llvm-3ba8893af53468df2e775f8504e0ec13d889ce9e.zip
external_llvm-3ba8893af53468df2e775f8504e0ec13d889ce9e.tar.gz
external_llvm-3ba8893af53468df2e775f8504e0ec13d889ce9e.tar.bz2
Fix bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DataStructure/IPModRef.cpp5
-rw-r--r--lib/Analysis/IPA/IPModRef.cpp5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/Analysis/DataStructure/IPModRef.cpp b/lib/Analysis/DataStructure/IPModRef.cpp
index ab9b770..c36c08f 100644
--- a/lib/Analysis/DataStructure/IPModRef.cpp
+++ b/lib/Analysis/DataStructure/IPModRef.cpp
@@ -158,9 +158,8 @@ DSGraph *FunctionModRefInfo::ResolveCallSiteModRefInfo(CallInst &CI,
return 0;
}
- // Remove trivial dead nodes... don't aggressively prune graph though... the
- // graph is short lived anyway.
- Result->removeTriviallyDeadNodes(false);
+ // Remove dead nodes...
+ Result->removeDeadNodes();
// Step #4: Return the clone + the mapping (by ref)
return Result;
diff --git a/lib/Analysis/IPA/IPModRef.cpp b/lib/Analysis/IPA/IPModRef.cpp
index ab9b770..c36c08f 100644
--- a/lib/Analysis/IPA/IPModRef.cpp
+++ b/lib/Analysis/IPA/IPModRef.cpp
@@ -158,9 +158,8 @@ DSGraph *FunctionModRefInfo::ResolveCallSiteModRefInfo(CallInst &CI,
return 0;
}
- // Remove trivial dead nodes... don't aggressively prune graph though... the
- // graph is short lived anyway.
- Result->removeTriviallyDeadNodes(false);
+ // Remove dead nodes...
+ Result->removeDeadNodes();
// Step #4: Return the clone + the mapping (by ref)
return Result;