• Michael Munday's avatar
    cmd/compile: improve s390x SSA rules for logical ops · 3202aa78
    Michael Munday authored
    This CL introduces some minor changes to match rules more closely
    to the instructions they are targeting. s390x logical operation
    with immediate instructions typically leave some bits in the
    target register unchanged. This means for example that an XOR
    with -1 requires 2 instructions. It is better in cases such as
    this to create a constant and leave it visible to the compiler
    so that it can be reused rather than hiding it in the assembler.
    
    This CL also tweaks the rules a bit to ensure that constants are
    folded when possible.
    
    Change-Id: I1c6dee31ece00fc3c5fdf6a24f1abbc91dd2db2a
    Reviewed-on: https://go-review.googlesource.com/31754Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    3202aa78
Name
Last commit
Last update
..
internal Loading commit data...
doc.go Loading commit data...
fmt_test.go Loading commit data...
main.go Loading commit data...