]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove unnecessary type conversions on s390x
authorMichael Munday <munday@ca.ibm.com>
Tue, 7 Feb 2017 23:32:27 +0000 (18:32 -0500)
committerMichael Munday <munday@ca.ibm.com>
Wed, 8 Feb 2017 19:29:41 +0000 (19:29 +0000)
commita16e631e7434b620cf74835625265ab07e973630
treed643fe7e029ec10e79fdfe435758750cc3fe923d
parent92cdde016ab64416188113c72e5d6b5ade87e89f
cmd/compile: remove unnecessary type conversions on s390x

Some rules insert MOVDreg ops to ensure that type changes are kept.
If there is no type change (or the input is constant) then the MOVDreg
can be omitted, allowing further optimization.

Reduces the size of the .text section in the asm tool by ~33KB.

Change-Id: I386883bb35b843c7b99a269cd6840dca77cf4371
Reviewed-on: https://go-review.googlesource.com/36547
Run-TryBot: Michael Munday <munday@ca.ibm.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/rewriteS390X.go