]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: combine some extensions with loads
authorKeith Randall <khr@golang.org>
Tue, 30 Aug 2016 21:59:34 +0000 (14:59 -0700)
committerKeith Randall <khr@golang.org>
Thu, 27 Oct 2016 21:31:26 +0000 (21:31 +0000)
commitf357091a6d48c3a87db14338b321eca52af30dd7
tree44f156eb1e065aa17eaa15230622344443545175
parentdc5f9311be7d75a283d124aa52e04ac5b2005e46
cmd/compile: combine some extensions with loads

For cases where we already have the ops, combine
sign or zero extension with the previous load
(even if the load is larger width).

Update #15105

Change-Id: I76c5ddd69e1f900d2a17d35503083bd3b4978e48
Reviewed-on: https://go-review.googlesource.com/28190
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go