Mercurial > hg > graal-compiler
changeset 15509:6f23b90c4129
Merge (Truffle: fix javadoc)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Mon, 05 May 2014 18:38:13 +0200 |
parents | eb9fa3d34314 (diff) 1a7ebcf3ae22 (current diff) |
children | a900caddcd60 |
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 17:14:09 2014 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/cfg/ControlFlowGraph.java Mon May 05 18:38:13 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) {