• Manos Koukoutos's avatar
    [wasm][turbofan] Improve inlining heuristics · bce44108
    Manos Koukoutos authored
    This CL improves wasm inlining heuristics in Turbofan, for an average
    8,5% performance improvement in selected benchmarks.
    
    Changes:
    - In WasmInliner::Reduce(), only collect inlining candidates into a
      priority queue, according to WasmInliner::LexicographicOrdering.
      Move actual inlining to Finalize().
    - Remove the InlineFirstFew heuristic. Add two limits to inlining:
      Maximum relative size increase (reversely proportional to the function
      size), and absolute size increase.
    - Pass information about call frequency from liftoff-collected feedback
      to the WasmInliner though the wasm module.
    - Run wasm inlining along other optimizations in the pipeline.
    - Split inlining and speculative inlining tests.
    
    Bug: v8:7748, v8:12166
    Change-Id: Iccee22093db765981889a24451fb458dfce1f1a6
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3222764Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
    Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77428}
    bce44108
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
loong64 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
riscv64 Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
DEPS Loading commit data...
liftoff-assembler-defs.h Loading commit data...
liftoff-assembler.cc Loading commit data...
liftoff-assembler.h Loading commit data...
liftoff-compiler.cc Loading commit data...
liftoff-compiler.h Loading commit data...
liftoff-register.h Loading commit data...