Mercurial > hg > graal-compiler
changeset 20139:7de9e37f368d
handle new nodes when gathering unscheduled usages of a node about to be lowered
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 02 Apr 2015 14:09:02 +0200 |
parents | 749ec6114ea0 |
children | bf4526ed41bd |
files | graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/LoweringPhase.java |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/LoweringPhase.java Thu Apr 02 12:56:38 2015 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/LoweringPhase.java Thu Apr 02 14:09:02 2015 +0200 @@ -357,8 +357,7 @@ if (node instanceof FloatingNode) { for (Node usage : node.usages()) { if (usage instanceof ValueNode) { - Block usageBlock = schedule.getCFG().blockFor(usage); - if (usageBlock == null) { + if (schedule.getCFG().getNodeToBlock().isNew(usage) || schedule.getCFG().blockFor(usage) == null) { unscheduledUsages.add(usage); } }