[Commonizer] Choose lower bit width numbers for optimistic number commonization
^KT-48455
This commit is contained in:
committed by
Space
parent
642bb68916
commit
60ccdf23ea
+1
-1
@@ -15,7 +15,7 @@ private class SubstitutableNumbers(private val numbers: Map<CirEntityId, BitWidt
|
||||
fun choose(first: CirClassType, second: CirClassType): CirClassType? {
|
||||
val firstBitWidth = numbers[first.classifierId] ?: return null
|
||||
val secondBitWidth = numbers[second.classifierId] ?: return null
|
||||
return if (secondBitWidth > firstBitWidth) second else first
|
||||
return if (secondBitWidth < firstBitWidth) second else first
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user