view graal/com.oracle.truffle.sl.test/tests/Break.sl @ 20050:a1d73b4fd139

Truffle FastPE: recompute loop freqencies once BranchProbabilities have had a chance to canonicalize
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Fri, 27 Mar 2015 15:37:42 +0100
parents 64c77f0577bb
children
line wrap: on
line source

function main() {  
  i = 0;  
  while (i < 1000) {
    if (i >= 942) {
      break;
    }  
    i = i + 1;  
  }
  return i;  
}