]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.8] cmd/compile: remove unnecessary type conversions on s390x
authorMichael Munday <munday@ca.ibm.com>
Tue, 28 Feb 2017 19:28:28 +0000 (14:28 -0500)
committerMichael Munday <munday@ca.ibm.com>
Thu, 2 Mar 2017 04:25:56 +0000 (04:25 +0000)
commit865536b1977d57d398e3bffaba9f205f1172a262
treefe6c561bd246c2e5bb2ad9efe1f20f637da9777a
parentbae53daa72bf2734acbb648b783752fbd00e357c
[release-branch.go1.8] 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.

For #19227.

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