Mercurial > hg > graal-compiler
changeset 9712:c02f33220973
Adjusted test-case workaround.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Tue, 14 May 2013 17:52:51 +0200 |
parents | 83dcd76c27f1 |
children | 4420f32a6d5c |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/BoxingEliminationTest.java |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/BoxingEliminationTest.java Tue May 14 16:57:07 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/BoxingEliminationTest.java Tue May 14 17:52:51 2013 +0200 @@ -130,11 +130,10 @@ } public static int referenceLoopSnippet(int n, int a) { - @SuppressWarnings("unused") // temporary fix because ordering of ConstantNodes may differ because inlining copies nodes - int temp = 1; + final int increment = 1; int sum = a; - for (int i = 0; i < n; i++) { + for (int i = 0; i < n; i += increment) { sum += i; } return sum;