• Clemens Backes's avatar
    [arm64] Optimize counting set half-words · 51eac99b
    Clemens Backes authored
    The {CountClearHalfWords} method is called whenever loading a constant
    into a register. It showed up with >0.5% in Liftoff compilation
    profiles. This CL refactors the method to return the number of *set*
    halfwords instead of *cleared* halfwords and avoids the loop in the
    implementation. This makes the method roughly twice as fast, and makes
    the code more readable.
    
    R=zhin@chromium.org
    
    Bug: v8:11879
    Change-Id: I7da8160b3c045e5fc1e97fc0e575083b3920cb5b
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3151962Reviewed-by: 's avatarZhi An Ng <zhin@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76771}
    51eac99b
Name
Last commit
Last update
..
assembler-arm64-inl.h Loading commit data...
assembler-arm64.cc Loading commit data...
assembler-arm64.h Loading commit data...
constants-arm64.h Loading commit data...
cpu-arm64.cc Loading commit data...
decoder-arm64-inl.h Loading commit data...
decoder-arm64.cc Loading commit data...
decoder-arm64.h Loading commit data...
instructions-arm64-constants.cc Loading commit data...
instructions-arm64.cc Loading commit data...
instructions-arm64.h Loading commit data...
interface-descriptors-arm64-inl.h Loading commit data...
macro-assembler-arm64-inl.h Loading commit data...
macro-assembler-arm64.cc Loading commit data...
macro-assembler-arm64.h Loading commit data...
register-arm64.cc Loading commit data...
register-arm64.h Loading commit data...
utils-arm64.cc Loading commit data...
utils-arm64.h Loading commit data...