Mercurial > hg > truffle
diff graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/SwitchNode.java @ 11262:c4703de83626
Fix Switch probability if simplification leaves no non-zero probability successor
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 06 Aug 2013 14:44:36 +0200 |
parents | 053b837d0d7d |
children | 9d341b6e47e5 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/SwitchNode.java Tue Aug 06 14:01:43 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/SwitchNode.java Tue Aug 06 14:44:36 2013 +0200 @@ -61,7 +61,7 @@ total += d; assert d >= 0.0 : "Cannot have negative probabilities in switch node: " + d; } - assert total > 0.999 && total < 1.001; + assert total > 0.999 && total < 1.001 : "Total " + total; return true; }