]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: perform minimal phi elimination during critical
authorTodd Neal <todd@tneal.org>
Fri, 18 Mar 2016 12:05:58 +0000 (07:05 -0500)
committerTodd Neal <todd@tneal.org>
Fri, 18 Mar 2016 15:35:49 +0000 (15:35 +0000)
commitb2dc1f82a5b2aa3132cb1fb0135efe1202a1e837
tree373374d39653a2ac7ec7ea6f2480403d955930ec
parent2330ae8cf80e4fa5e6e2909e0c8562fd3d9beec6
cmd/compile: perform minimal phi elimination during critical

Phi splitting sometimes leads to a phi with only a single predecessor.
This must be replaced with a copy to maintain a valid SSA form.

Fixes #14857

Change-Id: I5ab2423fb6c85a061928e3206b02185ea8c79cd7
Reviewed-on: https://go-review.googlesource.com/20826
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/critical.go