• ivica.bogosavljevic's avatar
    MIPS[64]: Disable Add/Shl to Lsa optimization if operand is immediate · 591a7ce0
    ivica.bogosavljevic authored
    Add/Shl to Lsa optimization doesn't yield any performance increase in case
    one of the operand is immediate, because Lsa cannot use the immediate so
    we use an extra instruction to load the immediate to register. On MIPSR2 and
    less this optimization leads to performance degradation, since Lsa is not
    supported on these architectures and it is emulated using Add/Shl which
    do support immediate as operand for Add.
    
    BUG=
    
    Review-Url: https://codereview.chromium.org/2509203003
    Cr-Commit-Position: refs/heads/master@{#41143}
    591a7ce0
instruction-selector-mips.cc 66.1 KB