aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ab9b7709d4..c36c08f9e7 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 ab9b7709d4..c36c08f9e7 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;