• zhengxing.li's avatar
    X87: Emit memory operands for cmp and test on ia32 and x64 when it makes sense. · e1b9058f
    zhengxing.li authored
      port 0e43ff56 (r34187)
    
      original commit message:
      The InstructionSelector now associates an effect level to every node in a block.
    
      The effect level of a node is the number of non-eliminatable nodes encountered from the beginning of the block to the node itself.
    
      With this change, on ia32 and x64, a load from memory into a register can be replaced by a memory operand if all of the following conditions hold:
    
      1. The only use of the load is in a 32 or 64 bit word comparison.
      2. The user node and the load node belong to the same block.
      3. The values of the operands have the same size (i.e., no need to zero-extend or sign-extend the result of the load).
    
    BUG=
    
    Review URL: https://codereview.chromium.org/1724473004
    
    Cr-Commit-Position: refs/heads/master@{#34204}
    e1b9058f
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
docs Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...