From 3ba8893af53468df2e775f8504e0ec13d889ce9e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Nov 2002 22:23:56 +0000 Subject: Fix bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4697 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/IPModRef.cpp | 5 ++--- lib/Analysis/IPA/IPModRef.cpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/Analysis') 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; -- cgit v1.1