]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: finish GOEXPERIMENT=preemptibleloops repair
authorDavid Chase <drchase@google.com>
Fri, 23 Mar 2018 15:30:58 +0000 (11:30 -0400)
committerDavid Chase <drchase@google.com>
Mon, 26 Mar 2018 17:44:14 +0000 (17:44 +0000)
commitf7404974daaf8f58af4d9c1fd504e81e7f0db0a2
treeb8a1d70f0d71c46d74beaa6a716bf6a915963bc2
parent8afa8a3374a926eda39e1449842a1c70b1fac37f
cmd/compile: finish GOEXPERIMENT=preemptibleloops repair

A newish check for branch-likely on single-successor blocks
caught a case where the preemption-check inserter was
setting "likely" on an unconditional branch.

Fixed by checking for that case before setting likely.

Also removed an overconservative restriction on parallel
compilation for GOEXPERIMENT=preemptibleloops; it works
fine, it is just another control-flow transformation.

Change-Id: I8e786e6281e0631cac8d80cff67bfb6402b4d225
Reviewed-on: https://go-review.googlesource.com/102317
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/ssa/loopreschedchecks.go