Mercurial > hg > truffle
changeset 15546:240083895914
simplification in FixedNodeProbabilityCache
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Wed, 07 May 2014 15:31:04 +0200 |
parents | 9d456ffc6120 |
children | cab432461b8b ff05eeb654d4 |
files | graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/FixedNodeProbabilityCache.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/FixedNodeProbabilityCache.java Wed May 07 11:51:52 2014 +0200 +++ b/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/graph/FixedNodeProbabilityCache.java Wed May 07 15:31:04 2014 +0200 @@ -64,7 +64,7 @@ double probability; if (current.predecessor() == null) { if (current instanceof MergeNode) { - probability = ((MergeNode) current).forwardEnds().stream().mapToDouble(end -> applyAsDouble(end)).sum(); + probability = ((MergeNode) current).forwardEnds().stream().mapToDouble(this::applyAsDouble).sum(); if (current instanceof LoopBeginNode) { probability *= ((LoopBeginNode) current).loopFrequency(); }