]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] Protect control value from being moved away from end of block
authorDaniel Morsing <daniel.morsing@gmail.com>
Sat, 13 Jun 2015 18:27:26 +0000 (19:27 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Sun, 14 Jun 2015 16:40:40 +0000 (16:40 +0000)
commit2efdaefdb034d463185b674eb3aa8dad5d1a907d
tree0febcc4e4c7aea22ed1353f0954146510c6aa891
parent8f22b5292ffc01ea66bd92fa833d0ec25390173b
[dev.ssa] Protect control value from being moved away from end of block

If there isn't a value dependency between the control value of a
block and some other value, the schedule pass might move the control
value to a spot that is not EOB. Fix by handling the control value
specially like phis.

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