]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: CSE copied tuple selectors
authorCherry Zhang <cherryyz@google.com>
Wed, 17 Aug 2016 17:29:19 +0000 (13:29 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 17 Aug 2016 21:03:26 +0000 (21:03 +0000)
commit3d5cf72ca9beaedc5dcc8b094945de95fa35a670
tree0e8f9bf57a432aa0a3833e979679280820fed7c7
parent2b8e143dc302d2f3817cb3df1c1cc0b2cde3bbc1
cmd/compile: CSE copied tuple selectors

In CSE if a tuple generator is CSE'd to a different block, its
selectors are copied to the same block. In this case, also CES
the copied selectors.

Test copied from Keith's CL 27202.

Fixes #16741.

Change-Id: I2fc8b9513d430f10d6104275cfff5fb75d3ef3d9
Reviewed-on: https://go-review.googlesource.com/27236
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/cse.go
test/fixedbugs/issue16741.go [new file with mode: 0644]