Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 17065d61b4aac0b34adefab2a945af092250b159..a198078ada10651ff6287c4e4700b4a3bf6b5e19 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -696,9 +696,7 @@ Node* WasmGraphBuilder::Unop(wasm::WasmOpcode opcode, Node* input) { |
op = m->ChangeUint32ToFloat64(); |
break; |
case wasm::kExprF32SConvertI32: |
- op = m->ChangeInt32ToFloat64(); // TODO(titzer): two conversions |
- input = graph()->NewNode(op, input); |
- op = m->TruncateFloat64ToFloat32(); |
+ op = m->RoundInt32ToFloat32(); |
break; |
case wasm::kExprF32UConvertI32: |
op = m->ChangeUint32ToFloat64(); |