Skip to content

Commit

Permalink
[GR-59515] Invokes with 0 callees are not unreachable in open analysis.
Browse files Browse the repository at this point in the history
PullRequest: graal/19188
  • Loading branch information
cstancu committed Nov 12, 2024
2 parents 8f6226b + 3c89e46 commit 956ca1a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,11 @@ private void handleInvoke(Invoke invoke, SimplifierTool tool) {

Collection<AnalysisMethod> callees = invokeFlow.getOriginalCallees();
if (callees.isEmpty()) {
unreachableInvoke(invoke, tool);
/* Invoke is unreachable, there is no point in improving any types further. */
if (isClosedTypeWorld) {
/* Invoke is unreachable, there is no point in improving any types further. */
unreachableInvoke(invoke, tool);
}
/* In open world we cannot make any assumptions about an invoke with 0 callees. */
return;
}
assert invokeFlow.isFlowEnabled() : "Disabled invoke should have no callees: " + invokeFlow + ", in method " + getQualifiedName(graph);
Expand Down

0 comments on commit 956ca1a

Please sign in to comment.