Reduce amount of work needed to compute ip/modref
authorChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 22:17:01 +0000 (22:17 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 22:17:01 +0000 (22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4637 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/IPModRef.cpp
lib/Analysis/IPA/IPModRef.cpp

index 3832cb3cad19a8b94a4b50a7707546257970fc74..ab9b7709d4b04d8c93be0c65067d99a08891d8c4 100644 (file)
@@ -148,7 +148,8 @@ DSGraph *FunctionModRefInfo::ResolveCallSiteModRefInfo(CallInst &CI,
     // Perform the merging now of the graph for the callee, which will come with
     // mod/ref bits set...
     Result->mergeInGraph(CS, IPModRefObj.getBUDSGraph(*F),
-                         DSGraph::StripAllocaBit);
+                         DSGraph::StripAllocaBit | DSGraph::DontCloneCallNodes |
+                         DSGraph::DontCloneAuxCallNodes);
 
   } else {
     std::cerr << "IP Mod/Ref indirect call not implemented yet: "
index 3832cb3cad19a8b94a4b50a7707546257970fc74..ab9b7709d4b04d8c93be0c65067d99a08891d8c4 100644 (file)
@@ -148,7 +148,8 @@ DSGraph *FunctionModRefInfo::ResolveCallSiteModRefInfo(CallInst &CI,
     // Perform the merging now of the graph for the callee, which will come with
     // mod/ref bits set...
     Result->mergeInGraph(CS, IPModRefObj.getBUDSGraph(*F),
-                         DSGraph::StripAllocaBit);
+                         DSGraph::StripAllocaBit | DSGraph::DontCloneCallNodes |
+                         DSGraph::DontCloneAuxCallNodes);
 
   } else {
     std::cerr << "IP Mod/Ref indirect call not implemented yet: "