• Nico Hartmann's avatar
    [torque] Reduce generated CSA variables and labels · 89b248b6
    Nico Hartmann authored
    This CL significantly reduces the size of CSA files generated from
    torque by introducing only those Phis at block entry that are
    required and otherwise uses defined values directly.
    
    To do so it does:
    - Define a DefinitionLocation that represents where a value is
      defined.
    - For each block compute all the definitions that reach that
      block and introduce a phi iff the reaching definitions for a value
      are not the same for all predecessor blocks.
    - In CSAGenerator map all DefinitionLocations to variables, such that
      if the same value is used in multiple blocks, it is mapped to the
      same variable without the need to pass it along the jump. This
      reduces both the arguments passed to Goto, Branch, ... and the
      variables that need to be passed to Bind when the block's label is
      bound. This reduces the number of temporary variables
      significantly. Temporaries are declared outside of blocks now
      in order to be accessible from other blocks.
    
    Drive-by changes:
    - Sequences of SetSourcePosition calls are merged if no output is
      generated between them.
    - Dead blocks are no longer generated in release builds.
    
    Bug: v8:9861
    Change-Id: I5c30e5376e93c424c3ebfc5144a08592d77ae61f
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2037444
    Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
    Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66225}
    89b248b6
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
ast Loading commit data...
base Loading commit data...
builtins Loading commit data...
codegen Loading commit data...
common Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
d8 Loading commit data...
date Loading commit data...
debug Loading commit data...
deoptimizer Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
extensions Loading commit data...
flags Loading commit data...
handles Loading commit data...
heap Loading commit data...
ic Loading commit data...
init Loading commit data...
inspector Loading commit data...
interpreter Loading commit data...
json Loading commit data...
libplatform Loading commit data...
libsampler Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parsing Loading commit data...
profiler Loading commit data...
protobuf Loading commit data...
regexp Loading commit data...
roots Loading commit data...
runtime Loading commit data...
sanitizer Loading commit data...
snapshot Loading commit data...
strings Loading commit data...
tasks Loading commit data...
third_party Loading commit data...
torque Loading commit data...
tracing Loading commit data...
trap-handler Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...