]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/ssa: fix sign extension + load combo
authorKeith Randall <khr@golang.org>
Tue, 15 Sep 2015 16:02:07 +0000 (09:02 -0700)
committerKeith Randall <khr@golang.org>
Tue, 15 Sep 2015 17:48:25 +0000 (17:48 +0000)
commitcde977c23cbf5fb29f12bcbca5164530d0256019
tree5dad98ec958c26df659c65fa33512a1307ea3fc6
parente3869a6b65bb0f95dac7eca3d86055160b12589f
[dev.ssa] cmd/compile/internal/ssa: fix sign extension + load combo

Load-and-sign-extend opcodes were being generated in the
wrong block, leading to having more than one memory variable
live at once.  Fix the rules + add a test.

Change-Id: Iadf80e55ea901549c15c628ae295c2d0f1f64525
Reviewed-on: https://go-review.googlesource.com/14591
Reviewed-by: Todd Neal <todd@tneal.org>
Run-TryBot: Todd Neal <todd@tneal.org>
src/cmd/compile/internal/gc/testdata/loadstore_ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/rewriteAMD64.go