]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix load combining from a non-zero pointer offset
authorTodd Neal <todd@tneal.org>
Tue, 8 Mar 2016 00:43:05 +0000 (18:43 -0600)
committerTodd Neal <tolchz@gmail.com>
Tue, 8 Mar 2016 02:21:01 +0000 (02:21 +0000)
commit481fe5901232583340159415f3f5c83af28c1fa4
treef600456f17107d980a38869dfcfe9ba96f02ede0
parent6df80387689a69a5b9e3ac073ba8ce4d8498ba66
cmd/compile: fix load combining from a non-zero pointer offset

When the pointer offset is non-zero in the small loads, we need to add the offset
when converting to the larger load.

Fixes #14694

Change-Id: I5ba8bcb3b9ce26c7fae0c4951500b9ef0fed54cd
Reviewed-on: https://go-review.googlesource.com/20333
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/testdata/arith_ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go