Skip NOP instructions in fast pop backward propagation

This commit is contained in:
Dmitry Petrov
2017-06-30 18:23:43 +03:00
parent 36cbc0defd
commit 614d90d6ef
3 changed files with 17 additions and 3 deletions
@@ -770,6 +770,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("inRangeCheckWithConst.kt")
public void testInRangeCheckWithConst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/inRangeCheckWithConst.kt");
doTest(fileName);
}
@TestMetadata("kt14360.kt")
public void testKt14360() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/kt14360.kt");