Remove code to scan call sites for max param count

We cannot find any case where this code fixes a problem,
and it doesn't seem to be a good fix anyway.
This commit is contained in:
Manu Sridharan 2017-06-22 14:32:47 +02:00
parent 16f673490d
commit 7d29573a26
1 changed files with 0 additions and 10 deletions

View File

@ -934,16 +934,6 @@ public class PDG<T extends InstanceKey> implements NumberedGraph<Statement> {
ArrayList<Statement> list = new ArrayList<Statement>();
int paramCount = node.getMethod().getNumberOfParameters();
for (Iterator<CGNode> callers = cg.getPredNodes(node); callers.hasNext(); ) {
CGNode caller = callers.next();
IR callerIR = caller.getIR();
for (Iterator<CallSiteReference> sites = cg.getPossibleSites(caller, node); sites.hasNext(); ) {
for (SSAAbstractInvokeInstruction inst : callerIR.getCalls(sites.next())) {
paramCount = Math.max(paramCount, inst.getNumberOfParameters()-1);
}
}
}
for (int i = 1; i <= paramCount; i++) {
ParamCallee s = new ParamCallee(node, i);
delegate.addNode(s);