remove a bogus optimization. This only works if there are no globals in the
authorChris Lattner <sabre@nondot.org>
Fri, 18 Mar 2005 00:23:59 +0000 (00:23 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Mar 2005 00:23:59 +0000 (00:23 +0000)
graph, and the combination of a function that does not reference globals, takes
not arguments and returns no value is pretty rare.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20670 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index 0e59841e09961e5c1025375af7a32c0c6f5d11e3..43170fdc24277883ec006bab03fea2000a8ead14 100644 (file)
@@ -1409,10 +1409,6 @@ void DSGraph::mergeInGraph(const DSCallSite &CS,
 ///
 void DSGraph::mergeInGraph(const DSCallSite &CS, Function &F,
                            const DSGraph &Graph, unsigned CloneFlags) {
-  // Fastpath for a noop inline.
-  if (CS.getNumPtrArgs() == 0 && CS.getRetVal().isNull())
-    return;
-
   // Set up argument bindings.
   std::vector<DSNodeHandle> Args;
   Graph.getFunctionArgumentsForCall(&F, Args);