Mercurial > hg > graal-compiler
changeset 15508:eb9fa3d34314
Merge (clean phase within PartialEscapePhase)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Mon, 05 May 2014 18:37:27 +0200 |
parents | 5fcbf87a58b7 (diff) 9fa849f665cc (current diff) |
children | 6f23b90c4129 |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/cfg/ControlFlowGraph.java Fri May 02 14:48:25 2014 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/cfg/ControlFlowGraph.java Mon May 05 18:37:27 2014 +0200 @@ -200,7 +200,7 @@ private void connectBlocks() { for (Block block : reversePostOrder) { List<Block> predecessors = new ArrayList<>(4); - double probability = 0; + double probability = block.getBeginNode() instanceof StartNode ? 1D : 0D; for (Node predNode : block.getBeginNode().cfgPredecessors()) { Block predBlock = nodeToBlock.get(predNode); if (predBlock.getId() >= 0) {