Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/cfg/BlocksToDoubles.java @ 14854:64e6a5484cac
Fix style issues.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Thu, 27 Mar 2014 16:21:14 +0100 |
parents | fb4b44ae8f5c |
children | f4e31f06b019 |
comparison
equal
deleted
inserted
replaced
14853:6bde7deb5be1 | 14854:64e6a5484cac |
---|---|
57 } | 57 } |
58 assert verify(nodeProbabilities, cfg, blockProbabilities) : "Probabilities differ for nodes in the same block."; | 58 assert verify(nodeProbabilities, cfg, blockProbabilities) : "Probabilities differ for nodes in the same block."; |
59 return blockProbabilities; | 59 return blockProbabilities; |
60 } | 60 } |
61 | 61 |
62 static private boolean verify(NodesToDoubles nodeProbabilities, ControlFlowGraph cfg, BlocksToDoubles blockProbabilities) { | 62 private static boolean verify(NodesToDoubles nodeProbabilities, ControlFlowGraph cfg, BlocksToDoubles blockProbabilities) { |
63 for (Block b : cfg.getBlocks()) { | 63 for (Block b : cfg.getBlocks()) { |
64 double p = blockProbabilities.get(b); | 64 double p = blockProbabilities.get(b); |
65 for (FixedNode n : b.getNodes()) { | 65 for (FixedNode n : b.getNodes()) { |
66 if (nodeProbabilities.get(n) != p) { | 66 if (nodeProbabilities.get(n) != p) { |
67 return false; | 67 return false; |