Mercurial > hg > graal-jvmci-8
changeset 9411:0a94f51ed31b
Merge
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Sun, 28 Apr 2013 23:27:33 +0200 |
parents | 3270cbd45e03 (current diff) 6a2a9eac243a (diff) |
children | 0097d456ed57 |
files | |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/IfNode.java Sun Apr 28 22:59:46 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/IfNode.java Sun Apr 28 23:27:33 2013 +0200 @@ -187,6 +187,9 @@ nextIf.setFalseSuccessor(intermediateBegin); intermediateBegin.setNext(this); this.setFalseSuccessor(bothFalseBegin); + nextIf.setTrueSuccessorProbability(probabilityB); + double newProbability = this.trueSuccessorProbability / (1.0 - probabilityB); + this.setTrueSuccessorProbability(newProbability); return; } }