[Wasm] Minor: move part of code of eqeqSymbol processing in BuiltInsLowering
This commit is contained in:
+5
-3
@@ -60,6 +60,11 @@ class BuiltInsLowering(val context: WasmBackendContext) : FileLoweringPass {
|
|||||||
|
|
||||||
val lhs = call.getValueArgument(0)!!
|
val lhs = call.getValueArgument(0)!!
|
||||||
val rhs = call.getValueArgument(1)!!
|
val rhs = call.getValueArgument(1)!!
|
||||||
|
|
||||||
|
if (lhs.isNullConst()) return callRefIsNull(rhs)
|
||||||
|
|
||||||
|
if (rhs.isNullConst()) return callRefIsNull(lhs)
|
||||||
|
|
||||||
val lhsType = lhs.type
|
val lhsType = lhs.type
|
||||||
val rhsType = rhs.type
|
val rhsType = rhs.type
|
||||||
if (lhsType == rhsType) {
|
if (lhsType == rhsType) {
|
||||||
@@ -68,9 +73,6 @@ class BuiltInsLowering(val context: WasmBackendContext) : FileLoweringPass {
|
|||||||
return irCall(call, newSymbol)
|
return irCall(call, newSymbol)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (lhs.isNullConst()) return callRefIsNull(rhs)
|
|
||||||
|
|
||||||
if (rhs.isNullConst()) return callRefIsNull(lhs)
|
|
||||||
|
|
||||||
if (!lhsType.isNullable()) {
|
if (!lhsType.isNullable()) {
|
||||||
return irCall(call, lhsType.findEqualsMethod().symbol, argumentsAsReceivers = true)
|
return irCall(call, lhsType.findEqualsMethod().symbol, argumentsAsReceivers = true)
|
||||||
|
|||||||
Reference in New Issue
Block a user