]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: omit unnecessary boolean zero extension on arm64
authorphilhofer <phofer@umich.edu>
Tue, 15 Aug 2017 04:50:43 +0000 (21:50 -0700)
committerCherry Zhang <cherryyz@google.com>
Mon, 21 Aug 2017 14:38:04 +0000 (14:38 +0000)
commit07ec4385f16ad5d10933f4540624aba8b48b1891
treec7c784d0cd1b56172f9166bb58c1207c4463c1c5
parenteccd3ef526956ab404b8b4a724a9a3862c77f457
cmd/compile: omit unnecessary boolean zero extension on arm64

On arm64, all boolean-generating instructions (CSET, etc.) set the upper
63 bits of the destination register to zero, so there is no need
to zero-extend the lower 8 bits again.

Fixes #21445

Change-Id: I3b176baab706eb684105400bacbaa24175f721f3
Reviewed-on: https://go-review.googlesource.com/55671
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/rewriteARM64.go