]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: only SSA [0]T when T is SSA-able
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 24 Mar 2017 16:36:31 +0000 (09:36 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 24 Mar 2017 16:53:22 +0000 (16:53 +0000)
commit7202341de92927484a3eed101d3b77653b8b8bd1
tree457dced7dac1721728a3ea7dfffa9351b25d7ee0
parent6652572b75bae4d358cf193a95f688d9b67c5722
cmd/compile: only SSA [0]T when T is SSA-able

Almost never happens in practice.
The compiler will generate reasonable code anyway,
since assignments involving [0]T never do any work.

Fixes #19696
Fixes #19671

Change-Id: I350d2e0c5bb326c4789c74a046ab0486b2cee49c
Reviewed-on: https://go-review.googlesource.com/38599
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/ssa.go
test/fixedbugs/issue19671.go [new file with mode: 0644]
test/fixedbugs/issue19696.go [new file with mode: 0644]