]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: treat control ops as live at end of block
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 4 Aug 2015 21:22:29 +0000 (14:22 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 4 Aug 2015 22:48:34 +0000 (22:48 +0000)
commit573c791e81f4356698e604bb2fdba13518edc736
tree30b030cd4798d5d57257672aa76d33edc3fe5768
parent54dca047dd646cfd071fe24cafb57c91a6262992
[dev.ssa] cmd/compile: treat control ops as live at end of block

Failure to treat control ops as live can lead
to them being eliminated when they live in
other blocks.

Change-Id: I604a1977a3d3884b1f4516bea4e15885ce38272d
Reviewed-on: https://go-review.googlesource.com/13138
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/check.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/regalloc_test.go [new file with mode: 0644]