]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/ssa: place for loop incr in a separate block
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 6 Jul 2015 22:29:39 +0000 (15:29 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 10 Jul 2015 03:39:20 +0000 (03:39 +0000)
commit517386832582a54e6b4170252e52f1a13c001e83
treec02de3e0a148ba052c509eaa2edec523e4549331
parent41dafe6ecc358f294e0e91b739b352858d0c01b4
[dev.ssa] cmd/compile/ssa: place for loop incr in a separate block

This is a prerequisite for implementing break and continue;
blocks ending in break or continue need to have
the increment block as a successor.

While we're here, implement for loops with no condition.

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