From: Chris Lattner Date: Mon, 11 Nov 2002 22:23:56 +0000 (+0000) Subject: Fix bug X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ba8893af53468df2e775f8504e0ec13d889ce9e;p=llvm Fix bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4697 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/IPModRef.cpp b/lib/Analysis/DataStructure/IPModRef.cpp index ab9b7709d4b..c36c08f9e77 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 ab9b7709d4b..c36c08f9e77 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;