]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: improve s390x rules for folding ADDconst into loads/stores
authorMichael Munday <munday@ca.ibm.com>
Fri, 7 Oct 2016 16:16:26 +0000 (12:16 -0400)
committerDavid Chase <drchase@google.com>
Tue, 1 Nov 2016 15:44:44 +0000 (15:44 +0000)
commit807a7ebd5107b44ca93849f2b12b61bc4cacca10
tree6048a6c960aa1917b8fbfa5a6be3ae98db5debf0
parentd7b34d5f29324d77fad572676f0ea139556235e0
cmd/compile: improve s390x rules for folding ADDconst into loads/stores

There is no benefit to folding ADDconsts unless the resultant immediate
will fit into a 20-bit signed integer, so limit these rules accordingly.

Also the signed load operations were missing, so I've added them, and
I've also removed some MOVDaddr rules that were dead code (MOVDaddrs
are rematerializable on s390x which means they can't take inputs other
than SP or SB).

Change-Id: Iebeba78da37d3d71d32d4b7f49fe4ea9095d40ec
Reviewed-on: https://go-review.googlesource.com/30616
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/rewriteS390X.go