]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: elide unnecessary sign/zeroExt, PPC64
authorDavid Chase <drchase@google.com>
Thu, 15 Sep 2016 22:14:32 +0000 (15:14 -0700)
committerDavid Chase <drchase@google.com>
Fri, 16 Sep 2016 15:58:56 +0000 (15:58 +0000)
commitc87528d7761e3f133fe238937019a18bf7cf0d3c
tree32eb1d94d4fc8e8e4e98cac3a88e5b0860c88878
parent46ba59025f527b2cfc5ef0d5ec47be45971ba672
cmd/compile: elide unnecessary sign/zeroExt, PPC64

Bias {Eq,Neq}{8,16} to prefer the extension likely to match
their operand's load (if loaded), and elide sign and zero
extending MOV{B,W}, MOV{B,W}Z when their operands are already
appropriately extended.

Change-Id: Ic01b9cab55e170f68fc2369688b50ce78a818608
Reviewed-on: https://go-review.googlesource.com/29236
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go