]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: in cse, allow for new ssa values
authorPhilip Hofer <phofer@umich.edu>
Tue, 15 Nov 2016 01:05:46 +0000 (17:05 -0800)
committerCherry Zhang <cherryyz@google.com>
Fri, 18 Nov 2016 16:31:27 +0000 (16:31 +0000)
commita34fddf46c47a86e7a7cab32be858f7e8d0feb70
treeeae010e50cd1264c4f9b5aada1f6ca55d067a198
parent277bcbbdcd26f2d64493e596238e34b47782f98e
cmd/compile: in cse, allow for new ssa values

The table of rewrites in ssa/cse is not sized appropriately for
ssa IDs that are created during copying of selects into new blocks.

Fixes #17918

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