]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: implement control flow handling
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 20 Jul 2015 22:39:14 +0000 (15:39 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Jul 2015 00:45:26 +0000 (00:45 +0000)
commit61aa0953e542eb047f22905f84c7d627a35b8607
tree9e588eb5f4ea26ca853a219d100e34001d3a257d
parent3e7e519c367f4ab5b2d9f863302cd0946fe74800
[dev.ssa] cmd/compile: implement control flow handling

Add label and goto checks and improve test coverage.

Implement OSWITCH and OSELECT.

Implement OBREAK and OCONTINUE.

Allow generation of code in dead blocks.

Change-Id: Ibebb7c98b4b2344f46d38db7c9dce058c56beaac
Reviewed-on: https://go-review.googlesource.com/12445
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/gen.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/ssa_test.go
src/cmd/compile/internal/gc/testdata/break_ssa.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/compile.go
test/label.go
test/label1.go