use of org.graalvm.compiler.nodes.SafepointNode in project graal by oracle.
the class LoopSafepointInsertionPhase method run.
@Override
protected void run(StructuredGraph graph) {
if (GenLoopSafepoints.getValue(graph.getOptions())) {
for (LoopBeginNode loopBeginNode : graph.getNodes(LoopBeginNode.TYPE)) {
for (LoopEndNode loopEndNode : loopBeginNode.loopEnds()) {
if (loopEndNode.canSafepoint()) {
SafepointNode safepointNode = graph.add(new SafepointNode());
graph.addBeforeFixed(loopEndNode, safepointNode);
}
}
}
}
}
Aggregations