1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

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
This commit is contained in:
Chris Lattner 2005-03-18 00:23:59 +00:00
parent 57989f2b9a
commit c2d54235d7

View 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);