Commit 5507162e authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[wasm] Use LowerInt64 method where possible

This removes the last instance where we did manually what {LowerInt64}
already does.

R=titzer@chromium.org

Change-Id: I5e0de0f8ed1ae31f295e947a9fe36e4142200b65
Reviewed-on: https://chromium-review.googlesource.com/602238Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47217}
parent 1d92fd2e
......@@ -4192,11 +4192,8 @@ SourcePositionTable* WasmCompilationUnit::BuildGraphForWasmFunction(
}
// Create a TF graph during decoding.
Graph* graph = jsgraph_->graph();
CommonOperatorBuilder* common = jsgraph_->common();
MachineOperatorBuilder* machine = jsgraph_->machine();
SourcePositionTable* source_position_table =
new (jsgraph_->zone()) SourcePositionTable(graph);
new (jsgraph_->zone()) SourcePositionTable(jsgraph_->graph());
WasmGraphBuilder builder(module_env_, jsgraph_->zone(), jsgraph_,
centry_stub_, func_body_.sig, source_position_table);
graph_construction_result_ =
......@@ -4211,10 +4208,7 @@ SourcePositionTable* WasmCompilationUnit::BuildGraphForWasmFunction(
return nullptr;
}
if (machine->Is32()) {
Int64Lowering(graph, machine, common, jsgraph_->zone(), func_body_.sig)
.LowerGraph();
}
builder.LowerInt64();
if (builder.has_simd() && !CpuFeatures::SupportsWasmSimd128()) {
SimdScalarLowering(jsgraph_, func_body_.sig).LowerGraph();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment