Generate conditional jumps with optimizations for loops, if possible.

This commit is contained in:
Mark Punzalan
2019-03-11 10:10:43 -07:00
committed by max-kammerer
parent 2aaf13e734
commit 9eb11ff3e9
9 changed files with 520 additions and 29 deletions
@@ -914,6 +914,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedDisjunction.kt");
}
@TestMetadata("negatedNonZeroCompare.kt")
public void testNegatedNonZeroCompare() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNonZeroCompare.kt");
}
@TestMetadata("negatedNullCompare.kt")
public void testNegatedNullCompare() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNullCompare.kt");
@@ -939,6 +944,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/conditions/noBoxingForPrimitiveEqObject.kt");
}
@TestMetadata("nonZeroCompare.kt")
public void testNonZeroCompare() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nonZeroCompare.kt");
}
@TestMetadata("nullCompare.kt")
public void testNullCompare() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompare.kt");