# HG changeset patch # User Doug Simon # Date 1410897652 -7200 # Node ID 8ca5e41dde86eb7107c9820e1abc32f5c0995cbd # Parent 583bf03b3e1a76e5d53e5462f6ba5438a78d78a9 DeadCodeElimination is not optional for OnStackReplacementPhase diff -r 583bf03b3e1a -r 8ca5e41dde86 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/OnStackReplacementPhase.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/OnStackReplacementPhase.java Tue Sep 16 22:00:22 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/OnStackReplacementPhase.java Tue Sep 16 22:00:52 2014 +0200 @@ -111,6 +111,6 @@ GraphUtil.killCFG(start); Debug.dump(graph, "OnStackReplacement result"); - new DeadCodeEliminationPhase(Optional).apply(graph); + new DeadCodeEliminationPhase(Required).apply(graph); } }