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
@@ -10587,6 +10587,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/dataClasses/doubleParam.kt");
}
@TestMetadata("equalityChecksPrimitiveUnboxed.kt")
public void testEqualityChecksPrimitiveUnboxed() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/equalityChecksPrimitiveUnboxed.kt");
}
@TestMetadata("floatParam.kt")
public void testFloatParam() throws Exception {
runTest("compiler/testData/codegen/box/dataClasses/floatParam.kt");
@@ -17016,6 +17021,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
}
@TestMetadata("equalityChecksPrimitiveUnboxed.kt")
public void testEqualityChecksPrimitiveUnboxed() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/equalityChecksPrimitiveUnboxed.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
}
@TestMetadata("equalityForBoxesOfNullableValuesOfInlineClass.kt")
public void testEqualityForBoxesOfNullableValuesOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/equalityForBoxesOfNullableValuesOfInlineClass.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());