Commit a052d3fe authored by Manos Koukoutos's avatar Manos Koukoutos Committed by V8 LUCI CQ

[wasm-gc] Optimize after memory lowering

Bug: v8:7748
Change-Id: I8da40c9443747ec8004ec78f0b1f82b83535944e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3749181
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81574}
parent 9318e064
......@@ -3334,6 +3334,12 @@ void Pipeline::GenerateCodeForWasmFunction(
pipeline.RunPrintAndVerify(MemoryOptimizationPhase::phase_name(), true);
if (FLAG_experimental_wasm_gc && FLAG_wasm_opt) {
// Run value numbering and machine operator reducer to optimize load/store
// address computation (in particular, reuse the address computation
// whenever possible).
pipeline.Run<MachineOperatorOptimizationPhase>();
pipeline.RunPrintAndVerify(MachineOperatorOptimizationPhase::phase_name(),
true);
pipeline.Run<DecompressionOptimizationPhase>();
pipeline.RunPrintAndVerify(DecompressionOptimizationPhase::phase_name(),
true);
......
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