mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Disable loop inversion, since it contains errors
This commit is contained in:
parent
ff059919a7
commit
5d1e558401
|
@ -57,7 +57,6 @@ import org.teavm.model.optimization.Devirtualization;
|
|||
import org.teavm.model.optimization.GlobalValueNumbering;
|
||||
import org.teavm.model.optimization.Inlining;
|
||||
import org.teavm.model.optimization.LoopInvariantMotion;
|
||||
import org.teavm.model.optimization.LoopInversion;
|
||||
import org.teavm.model.optimization.MethodOptimization;
|
||||
import org.teavm.model.optimization.MethodOptimizationContext;
|
||||
import org.teavm.model.optimization.RedundantJumpElimination;
|
||||
|
@ -539,7 +538,7 @@ public class TeaVM implements TeaVMHost, ServiceRepository {
|
|||
optimizations.add(new RedundantJumpElimination());
|
||||
optimizations.add(new ArrayUnwrapMotion());
|
||||
if (optimizationLevel.ordinal() >= TeaVMOptimizationLevel.ADVANCED.ordinal()) {
|
||||
optimizations.add(new LoopInversion());
|
||||
//optimizations.add(new LoopInversion());
|
||||
optimizations.add(new LoopInvariantMotion());
|
||||
}
|
||||
optimizations.add(new GlobalValueNumbering(optimizationLevel == TeaVMOptimizationLevel.SIMPLE));
|
||||
|
|
Loading…
Reference in New Issue
Block a user