JVM_IR simplify null check on trivially initialized vals only

This commit is contained in:
Dmitry Petrov
2021-10-01 11:17:16 +03:00
committed by TeamCityServer
parent ae1288948a
commit aea2db97c5
17 changed files with 73 additions and 10 deletions
@@ -26918,6 +26918,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/safeCall/safeCallEqPrimitive.kt");
}
@TestMetadata("safeCallIOnUninitializedNonNullValue.kt")
public void testSafeCallIOnUninitializedNonNullValue() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallIOnUninitializedNonNullValue.kt");
}
@TestMetadata("safeCallNotEqPrimitive.kt")
public void testSafeCallNotEqPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallNotEqPrimitive.kt");
@@ -26324,6 +26324,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/safeCall/safeCallEqPrimitive.kt");
}
@TestMetadata("safeCallIOnUninitializedNonNullValue.kt")
public void testSafeCallIOnUninitializedNonNullValue() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallIOnUninitializedNonNullValue.kt");
}
@TestMetadata("safeCallNotEqPrimitive.kt")
public void testSafeCallNotEqPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallNotEqPrimitive.kt");
@@ -26249,6 +26249,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/safeCall/safeCallEqPrimitive.kt");
}
@TestMetadata("safeCallIOnUninitializedNonNullValue.kt")
public void testSafeCallIOnUninitializedNonNullValue() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallIOnUninitializedNonNullValue.kt");
}
@TestMetadata("safeCallNotEqPrimitive.kt")
public void testSafeCallNotEqPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallNotEqPrimitive.kt");
@@ -15618,6 +15618,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/safeCall/safeCallEqPrimitive.kt");
}
@TestMetadata("safeCallIOnUninitializedNonNullValue.kt")
public void testSafeCallIOnUninitializedNonNullValue() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallIOnUninitializedNonNullValue.kt");
}
@TestMetadata("safeCallNotEqPrimitive.kt")
public void testSafeCallNotEqPrimitive() throws Exception {
runTest("compiler/testData/codegen/box/safeCall/safeCallNotEqPrimitive.kt");