Skip to content

Commit

Permalink
Ignore FrameState when matching nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Wimmer committed Sep 11, 2020
1 parent 49d041c commit 71f81c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.graalvm.compiler.graph.NodeMap;
import org.graalvm.compiler.nodes.PhiNode;
import org.graalvm.compiler.nodes.StructuredGraph;
import org.graalvm.compiler.nodes.VirtualState;
import org.graalvm.compiler.nodes.calc.FloatingNode;
import org.graalvm.compiler.nodes.cfg.Block;
import org.graalvm.compiler.nodes.virtual.VirtualObjectNode;
Expand Down Expand Up @@ -242,7 +243,7 @@ private Result findEarlyPosition() {
private static boolean sideEffectFree(Node node) {
// The order of evaluation of these nodes controlled by data dependence so they
// don't interfere with this match.
return node instanceof VirtualObjectNode || node instanceof FloatingNode;
return node instanceof VirtualObjectNode || node instanceof FloatingNode || node instanceof VirtualState;
}

private void findLatePosition() {
Expand Down

0 comments on commit 71f81c0

Please sign in to comment.