Mercurial > hg > truffle
diff graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java @ 11766:c9c3f8efe6a9
FloatingReadPhase: add attribute to graph about application of FloatingReadPhase to this graph
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Tue, 24 Sep 2013 14:11:31 +0200 |
parents | bf7f09417f76 |
children | ac252c4c920b |
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java Tue Sep 24 16:06:46 2013 +0200 +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java Tue Sep 24 14:11:31 2013 +0200 @@ -759,8 +759,7 @@ } for (Node usage : newNode.usages().snapshot()) { if (usage instanceof FloatingReadNode && ((FloatingReadNode) usage).lastLocationAccess() == newNode) { - // TODO: add graph state for FloatingReadPhase - assert newNode.graph().getGuardsStage().ordinal() >= StructuredGraph.GuardsStage.FIXED_DEOPTS.ordinal(); + assert newNode.graph().isAfterFloatingReadPhase(); // lastLocationAccess points into the snippet graph. find a proper // MemoryCheckPoint inside the snippet graph