]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add a pass to print bound checks
authorAlexandru Moșoi <brtzsnr@gmail.com>
Mon, 4 Apr 2016 21:33:30 +0000 (23:33 +0200)
committerAlexandru Moșoi <alexandru@mosoi.ro>
Tue, 5 Apr 2016 12:46:59 +0000 (12:46 +0000)
commit1747788c5668e76a238221ae4982daa5bdf24939
treedf0bf1a8c760196736c1e5618ccc1e4c5dd7ff40
parent3bbede0c512ca645fa19522480c0200ee4711bf3
cmd/compile: add a pass to print bound checks

Since BCE happens over several passes (opt, loopbce, prove)
it's easy to regress especially with rewriting.

The pass is only activated with special debug flag.

Change-Id: I46205982e7a2751156db8e875d69af6138068f59
Reviewed-on: https://go-review.googlesource.com/21510
Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/checkbce.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/phiopt.go
test/checkbce.go [new file with mode: 0644]