]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: MOVBload and MOVBQZXload are the same op
authorKeith Randall <khr@golang.org>
Tue, 22 Mar 2016 23:22:21 +0000 (16:22 -0700)
committerKeith Randall <khr@golang.org>
Wed, 23 Mar 2016 00:28:01 +0000 (00:28 +0000)
commit68e86e6dfaf22d9295e3dc4d4387710b15224e93
tree3e4166c8e880807b2a9204260fbb57ec67818525
parent5cdb3d0321c4615ff271353030e3742912e241ba
cmd/compile: MOVBload and MOVBQZXload are the same op

No need to have both ops when they do the same thing.
Just declare MOVBload to zero extend and we can get rid
of MOVBQZXload.  Same for W and L.

Kind of a followon cleanup for https://go-review.googlesource.com/c/19506/
Should enable an easier fix for #14920

Change-Id: I7cfac909a8ba387f433a6ae75c050740ebb34d42
Reviewed-on: https://go-review.googlesource.com/21004
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go