]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: short-circuit empty blocks
authorKeith Randall <khr@golang.org>
Thu, 21 Jan 2016 21:27:01 +0000 (13:27 -0800)
committerKeith Randall <khr@golang.org>
Fri, 22 Jan 2016 22:12:12 +0000 (22:12 +0000)
commit3c26c0db3923451f1340e10524e985597da5bba2
treea4b2d3a30b71eada624b458c65a17a058fec767a
parent7730880f7ceda51c025a3c6bd296e1fa2de52318
[dev.ssa] cmd/compile: short-circuit empty blocks

Empty blocks are introduced to remove critical edges.
After regalloc, we can remove any of the added blocks
that are still empty.

Change-Id: I0b40e95ac3a6cc1e632a479443479532b6c5ccd9
Reviewed-on: https://go-review.googlesource.com/18833
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/TODO
src/cmd/compile/internal/ssa/check.go
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/trim.go [new file with mode: 0644]
test/nilptr3_ssa.go