From c2d54235d78ae20d36bc3757bda5f977c207000e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 18 Mar 2005 00:23:59 +0000 Subject: [PATCH] remove a bogus optimization. This only works if there are no globals in the graph, and the combination of a function that does not reference globals, takes not arguments and returns no value is pretty rare. llvm-svn: 20670 --- lib/Analysis/DataStructure/DataStructure.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 0e59841e099..43170fdc242 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -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 Args; Graph.getFunctionArgumentsForCall(&F, Args);