JVM IR: Avoid boxing in generic floating point equality (KT-48635)

This commit is contained in:
Steven Schäfer
2022-05-30 12:17:46 +02:00
committed by Alexander Udalov
parent 36a154507e
commit dbb6144ab0
12 changed files with 229 additions and 20 deletions
@@ -13209,6 +13209,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/dataClasses/doubleParam.kt");
}
@Test
@TestMetadata("equalityChecksPrimitiveUnboxed.kt")
public void testEqualityChecksPrimitiveUnboxed() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/equalityChecksPrimitiveUnboxed.kt");
}
@Test
@TestMetadata("floatParam.kt")
public void testFloatParam() throws Exception {
@@ -20693,6 +20699,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
}
@Test
@TestMetadata("equalityChecksPrimitiveUnboxed.kt")
public void testEqualityChecksPrimitiveUnboxed() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveUnboxed.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
}
@Test
@TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt")
public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception {