]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: fix rare issue caused by liblink rewrite
authorTodd Neal <todd@tneal.org>
Sat, 29 Aug 2015 20:41:57 +0000 (15:41 -0500)
committerTodd Neal <todd@tneal.org>
Tue, 1 Sep 2015 22:19:49 +0000 (22:19 +0000)
commit6411533ebf98d898a888b0195e8c4d4039864896
tree6524d0c826343b5cee8abbbc21b04a59bff62077
parent3a9d0ac3c807de9c6b91a91fa1e37f75da1941a8
[dev.ssa] cmd/compile: fix rare issue caused by liblink rewrite

liblink rewrites MOV $0, reg into XOR reg, reg. Make MOVxconst clobber
flags so we don't generate invalid code in the unlikely case that it
matters.  In testing, this change leads to no additional regenerated
flags due to a scheduling fix in CL14042.

Change-Id: I7bc1cfee94ef83beb2f97c31ec6a97e19872fb89
Reviewed-on: https://go-review.googlesource.com/14043
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/testdata/ctl_ssa.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go