view graal/com.oracle.graal.truffle.test/src/sl/TestOSR.sl @ 23170:cce1287c1778

Perform GVN in the canonicalizer also on leaf nodes.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 13 Dec 2015 23:10:05 +0100
parents bba4e91a2d63
children
line wrap: on
line source

function test() {
  i = 0;
  sum = 0;  
  while (i < 300000) { 
    sum = sum +  i;
    i = i + 1;  
  }
  return sum;
}

function main() {  
  test();
}