Disables loop invariant motion for arrays

This commit is contained in:
konsoletyper 2014-06-28 11:20:38 +04:00
parent 084de3374e
commit 45d0a10c8d
2 changed files with 5 additions and 3 deletions

View File

@ -1334,7 +1334,7 @@ public class TBigInteger extends Number implements Comparable<TBigInteger>, Seri
throw new ArithmeticException("BigInteger: modulus not positive");
}
TBigInteger rem = remainder(m);
return ((rem.sign < 0) ? rem.add(m) : rem);
return rem.sign < 0 ? rem.add(m) : rem;
}
/**

View File

@ -340,7 +340,8 @@ public class LoopInvariantMotion implements MethodOptimization {
@Override
public void visit(ArrayLengthInstruction insn) {
canMove = true;
// TODO: Sometimes we can cast NPE when array is null and its length is read only in certain cases
//canMove = true;
}
@Override
@ -349,7 +350,8 @@ public class LoopInvariantMotion implements MethodOptimization {
@Override
public void visit(UnwrapArrayInstruction insn) {
canMove = true;
// TODO: Sometimes we can cast NPE when array is null and is is unwrapped only in certain cases
//canMove = true;
}
@Override