More aggressive DCE should honor debugger invariants
- A LINENUMEBER node is "dead" if the corresponding instruction interval contains at least one "dead" bytecode instruction and no live bytecode instructions - Observable local variable lifetimes should be taken into account when determining if a NOP is required for debugger.
This commit is contained in:
@@ -911,6 +911,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inlineIfFalse.kt")
|
||||
public void testInlineIfFalse() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/constantConditions/inlineIfFalse.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt3098.kt")
|
||||
public void testKt3098() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/constantConditions/kt3098.kt");
|
||||
|
||||
Reference in New Issue
Block a user