Skip to content

Commit

Permalink
[GR-31114] Remove SubstrateArraysCopyOfSnippets.
Browse files Browse the repository at this point in the history
PullRequest: graal/9291
  • Loading branch information
zapster committed Jul 13, 2021
2 parents 1ccab6b + 7fd89f8 commit 33c8c0d
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 496 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,19 @@
import org.graalvm.compiler.nodeinfo.NodeCycles;
import org.graalvm.compiler.nodeinfo.NodeInfo;
import org.graalvm.compiler.nodeinfo.NodeSize;
import org.graalvm.compiler.nodes.memory.SingleMemoryKill;
import org.graalvm.word.LocationIdentity;

/**
* Allows to build control flow structures that are syntactically correct (can be processed by all
* Graal phases) but known to be unreachable, i.e., known to be removed at a later point in the
* compilation pipeline. Useful together with {@link UnreachableControlSinkNode}.
*/
@NodeInfo(cycles = NodeCycles.CYCLES_IGNORED, size = NodeSize.SIZE_IGNORED)
public final class UnreachableBeginNode extends AbstractBeginNode implements SingleMemoryKill {
public final class UnreachableBeginNode extends AbstractBeginNode {

public static final NodeClass<UnreachableBeginNode> TYPE = NodeClass.create(UnreachableBeginNode.class);

public UnreachableBeginNode() {
super(TYPE);
}

@Override
public LocationIdentity getKilledLocationIdentity() {
return LocationIdentity.any();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ final class JDKIntrinsicsFeature implements GraalFeature {
public void registerForeignCalls(RuntimeConfiguration runtimeConfig, Providers providers, SnippetReflectionProvider snippetReflection, SubstrateForeignCallsProvider foreignCalls, boolean hosted) {
ArraycopySnippets.registerForeignCalls(providers, foreignCalls);
SubstrateObjectCloneSnippets.registerForeignCalls(providers, foreignCalls);
SubstrateArraysCopyOfSnippets.registerForeignCalls(providers, foreignCalls);
}

@Override
Expand All @@ -64,7 +63,6 @@ public void registerLowerings(RuntimeConfiguration runtimeConfig, OptionValues o
Map<Class<? extends Node>, NodeLoweringProvider<?>> lowerings, boolean hosted) {
new ArraycopySnippets(options, factories, providers, snippetReflection, lowerings);
SubstrateObjectCloneSnippets.registerLowerings(options, factories, providers, snippetReflection, lowerings);
SubstrateArraysCopyOfSnippets.registerLowerings(options, factories, providers, snippetReflection, lowerings);
}

@Override
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 33c8c0d

Please sign in to comment.