changeset 8450:ad673bbfb4e5

undid the change that disabled frame state cleanup for method substitutions
author Doug Simon <doug.simon@oracle.com>
date Fri, 22 Mar 2013 19:07:30 +0100
parents 7485b8a7cd24
children 2ffd472c5d25
files graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsInstaller.java
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsInstaller.java	Fri Mar 22 18:24:29 2013 +0100
+++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsInstaller.java	Fri Mar 22 19:07:30 2013 +0100
@@ -213,13 +213,9 @@
         new NodeIntrinsificationPhase(runtime, pool).apply(graph);
         assert SnippetTemplate.hasConstantParameter(method) || NodeIntrinsificationVerificationPhase.verify(graph);
 
-        if (substitute == null) {
-            new SnippetFrameStateCleanupPhase().apply(graph);
-            new DeadCodeEliminationPhase().apply(graph);
-            new InsertStateAfterPlaceholderPhase().apply(graph);
-        } else {
-            new DeadCodeEliminationPhase().apply(graph);
-        }
+        new SnippetFrameStateCleanupPhase().apply(graph);
+        new DeadCodeEliminationPhase().apply(graph);
+        new InsertStateAfterPlaceholderPhase().apply(graph);
     }
 
     public StructuredGraph makeGraph(final ResolvedJavaMethod method, final SnippetInliningPolicy policy) {